Cn Dev
Cn Dev

Reputation: 1

I can add and edit resources from dll compiled at runtime?

I have a project webr that hosts two resource resx files in webr.properties, and resources are accessed as static properties, but when publishing the website becomes bin/webr.dll and bin/es/webr.resources.dll resx file are embedded in these dll, I can add and edit these resources in runtime in persistently? It is not to affect other projects that keep static reference to these resources. What do you suggest?

Upvotes: 0

Views: 244

Answers (2)

Vinay Pandey
Vinay Pandey

Reputation: 8913

No, you are referring to satellite assembly and that is precompiled and stored in your bin.

You can use other means like filesystem,database or any similar mechanism.

Upvotes: 0

Kazetsukai
Kazetsukai

Reputation: 2258

I would recommend storing the new resources you want on the file system or in a database, and accessing them that way. Modifying the resources at runtime could be in theory possible, but feels like a strange solution. If it is images you are talking about, then I would try to find out how it is recommended to serve images in the specific web framework you are using.

Upvotes: 1

Related Questions