Detecting language please wait for.......
I am experiencing a problem when I want to build my plugin: I keep getting the following error message:
Error 1 Failed to locate ResGen.exe and unable to compile plug-in resource file 'C:\Users\lp50922\documents\visual studio 2013\Projects\EPO_446_CreateStudioProject\EPO_446_CreateStudioProject\PluginResources.resx' EPO_446_CreateStudioProject
I know that the Resgen is available and working because it is used in other (non-SDL) projects I am building, e.g. this one, which is also based on .Net Framework 4.0:
1> "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\resgen.exe" /useSourcePath /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Microsoft.CSharp.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Deployment.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Drawing.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll" /compile Properties\Resources.resx,obj\Debug\testResGen40.Properties.Resources.resources
1> Processing resource file "Properties\Resources.resx" into "obj\Debug\testResGen40.Properties.Resources.resources"
Is there any reference in the plugin template which redirect Visual Studio to another location where it cannot find the Resgen.exe file?
Can anyone give me a good hint on this one? I am a bit blocked since I do not know what is going wrong and what prevents me of building my Plugin.
Thanks in advance for your support.
The registry key depends a bit on your os version and machine configuration. In order to properly understand where msbuild is looking and not founding the resgen.exe I suggest to run msbuild…
I had the same exact problem using Visual Studio Express 2013 (Failed to locate ResGen.exe and unable to compile plug-in resource file). I spent hours trying to find a solution to no avail.
Hi Romulus Crisan,
Thank you very much for your detailed instructions as they really helped to solve the problem.
The log generated by MS Build showed that MS BUILD was looking in the following keys:
Can anyone help me on this issue? I already tried to copy the resgen.exe to several places but without success. Has anyone an idea or a suggestion which could help me to think further about that?
Have you added a new icon in the pluginresources? If so, could you please make sure that the version set for the icon is Version=126.96.36.199 and not 188.8.131.52. To do this, open the PluginResources.resx with a text editor and manually make the change.
Thank you for your reply. No, I have no icon in the plugin resources.
For your information, I am using Visual Studio Express and not Visual Studio. Do you believe it may be the problem?
It shouldn't be an issue, but I haven't tried it myself, I am going to try to replicate the issue and get back here after that.
I ended up downloading Visual Studio 14 CTP and compilation works fine.
That is caused by Express version, full version will solve this issue.