MSBuild cant find resgen.exe
msbuild, sdk
Solution
Make sure your environment variable path includes the folder in which ResGen.exe resides
Problem
I have a VM machine where I copied over the SDK files and path, went to the registry and added the keys to the registry, but I keep getting the error that `resgen.exe` cannot be found: ``` C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1835,9): error MSB3091: Task failed because "resgen.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "resgen.exe" in the"bin" subdirectory beneath the location specified in the Installation Folder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\ Windows\v7.0A. You may be able to solve the problem by doing one of the following: 1) Install the Microsoft Windows SDK. 2) Install Visual Studio 2010. 3) Manually set the above registry key to the correct location. 4) Pass the correct location into the "ToolPath" parameter of the task. ``` I looked in the folder `Microsoft\Microsoft SDKs\Windows\v7.0A` and copied over the `resgen.exe` in practically every single net folder including the bin, but it keeps telling me that `resgen.exe` cannot be found. I have no clue what to do.