SDL Trados Studio
SDL Trados GroupShare
SDL Trados Business Manager
SDL Trados Live
SDL Speech to Text
SDL Managed Translation - Enterprise
Translation Management Connectors
SDL LiveContent S1000D
SDL Contenta S1000D
SDL Tridion Docs
SDL Tridion Sites
SDL Content Assistant
SDL Machine Translation Cloud
SDL Machine Translation Connectors
SDL Machine Translation Edge
Tridion Docs Developers
SDL User Experience
Language Products - GCS Internal Community
SDL Community Internal Group
SDL Access Customer Portal
SDL Professional Services
SDL Training & Certification
Language Technology Partner Group
SDL Academic Partners
SDL Enterprise Technology Partners
ETUG (European Trados User Group) Public Information
Machine Translation User Group
Nordic SDL Tridion Docs User Group
SDL Tridion UK Meetup
SDL Tridion User Group New England
SDL Tridion West Coast User Group
SDL WorldServer User Group
Tridion Docs Europe & APAC User Group
Tridion User Group Benelux
Tridion User Group Ohio Valley
SDL MultiTerm Ideas
SDL Passolo Ideas
SDL Trados GroupShare Ideas
SDL Trados Studio Ideas
SDL Machine Translation Cloud Ideas
SDL Machine Translation Edge Ideas
SDL Language Cloud TMS Ideas
SDL Language Cloud Terminology Ideas
SDL Language Cloud Online Editor Ideas
SDL Managed Translation - Enterprise Ideas
SDL TMS Ideas
SDL WorldServer Ideas
SDL Tridion Docs Ideas
SDL Tridion Sites Ideas
SDL LiveContent S1000D Ideas
SDL Contenta S1000D
SDL XPP Ideas
Events & Webinars
To SDL Documentation
To SDL Support
What's New in SDL
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=188.8.131.52 and not 184.108.40.206. 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.
Here is the workaround which was suggested by SDL to solve this issue:
Create a string value registry key named CurrentInstallFolder in SOFTWARE\Microsoft\Microsoft SDKs\Windows and set the value to the location of the Windows SDK on your hard drive - be sure that the specified folder contains a Bin folder in it – and which contains all the Microsoft SDK tools are in, including resgen.exe.
So for example in your situation the registry key value should be "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A" and in that folder you should create a new folder named bin in which you should copy all the tools from the folder "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools"
I had to adapt this workaround slightly to make it work. This is what I did:
I copied the content of the folder
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\
However, I had to add the registry key under Wow6432Node structure (see below):
I hope this helps you.
You can also try the new Visual Studio 2013 Community Edition - which is also free