I'm getting an error that reads:
The custom tool 'PublicResXFileCodeGenerator' failed while processing the file 'Properties\Resources.resx'
I haven't the slightes开发者_开发问答t clue how to fix it. If any of you know what's going on here, I could use your help.
Whenever a .resx file is compiled, Visual Studio runs it through the PublicResXFileCodeGenerator (or InternalResXFileCodeGenerator, if it's visibility is internal) to generate the actual strongly-typed properties that you use in your code.
If there is something wrong with the XML in the file, malformed or corrupted perhaps, then the process might fail. Can you open the file in the resource view?
Follow these instructions:
- Copy the contents of Resources.resx to a new resource file.
- Delete Resources.resx from the project.
- Unload the project
- Reload the project.
That should get rid of the compiler warning.
try this .. Open your fileName.resx file in windows explorer and right click - Properties
maybe you will find "This file came from another computer and might be blocked to help protect this computer."
Check [Unblock] checkbox and apply then try to build your solution again.
精彩评论