Adding new strings to resource.resx not reflecting into Designer.cs

非 Y 不嫁゛ 提交于 2019-12-04 22:22:32

Make sure the Custom tool property for your resx file is set to ResXFileCodeGenerator or PublicResXFileCodeGenerator. The .Designer.cs file should be regenerated every time you modify the resx file; if it's not, you can force it by selecting Run custom tool in the context menu for the resx file.

Right click the resx file in solution explorer, select "Run custom tool".

This generated/added the code in the .designer.cs file for the new strings in the resource file for me.

Muhammad Omar ElShourbagy

I came across this solution and it worked fine for me.

  • Close the solution
  • Edit the project file LastGenOutput tag for the resource file
  • Open the solution again and try
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!