Reputation: 23177
I'm getting an error that reads:
The custom tool 'PublicResXFileCodeGenerator' failed while processing the file 'Properties\Resources.resx'
I haven't the slightest clue how to fix it. If any of you know what's going on here, I could use your help.
Upvotes: 4
Views: 8968
Reputation: 321
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.
Upvotes: 0
Reputation: 54801
Follow these instructions:
That should get rid of the compiler warning.
Upvotes: 1
Reputation: 116977
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?
Upvotes: 2