Normally when we add new rows to a .resx file, say Resources.resx, in the IDE’s resource editor, the code-behind file, say Resources.Designer.cs, will be automatically updated – adding new properties for the new rows.
But in some situation, that automation job stops working!? Then, how can we re-activate the IDE so that the .resx’s code-behind return to work?
Here what I found:
- Delete the
- In Solution Explorer, exclude the
- Then, show all files, re-include the
Resources.Designer.csfile should be recreated then.
- Reset the ‘Access Modifier’ to be ‘Public’
- Right click
Resources.resxin Solution Explorer and click
Run custom tool
Hope this would be helpful to you!
ps. You can see my discussion on SO here.