Update resource files in assemblie

the website i'm working on has resource files for a number of languages.

The resources of the website are compiled in the website dll (i think?) and the resources from other, from the website, referenced dll's, are stored in subfolders of the bin directory.

So i have in the bin my website.dll, and a subfolder called es with the Spanish resources for the website.services project (called website.services.resources.dll) and so on.

Now we have the site live, and there is a wish for a immediate change of one of the items in a resource file.

As my .resx files are compiled, i have to change the resource in the dll.

Is that possible?


Just change the specified item in the rsex file. Compile it again and replace the DLL. I think it will work.


another approach could be to copy up your project to the server, in it's entirety. Then the runtime on the server will compile the app for you. Then when you next make a change to the resx file the runtime will re-compile the app and pickup the change.

Downside to this when you make a change to the resx your users may notice the site stop working and may lose any session variables (if i remember correctly).

链接地址: http://www.djcxy.com/p/66640.html

上一篇: .net资源DLL与多个resx文件

下一篇: 更新装配中的资源文件