Editing resource files without recompiling ASP.NET application

前端 未结 2 1110
梦谈多话
梦谈多话 2020-11-29 21:20

I\'d like to enable the resource files to be editable after deployment. I read this post which suggests that this is possible, but I can\'t seem to figure out what settings

2条回答
  •  醉梦人生
    2020-11-29 21:53

    You can achieve this, and I just did it.

    Select the resource file in your project. Change the Build Action to content. Make sure that the Copy to Output Directory setting is turned OFF. When you deploy your project, the App_GlobalResources directory and your .resx file will get copied to the root of your web site. You can modify the .resx file and your live site will recognize the changes.

提交回复
热议问题