问题
I am trying to run my build for my solution vs.net 2012 tfs but I am getting an error:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (2291): Task failed because "resgen.exe" was not found
I tried to install the latest windows sdk 7.1 but it wont let me? is there another solution for this except installing vs.net on the buildserver?
回答1:
I resolved this error on my TFS 2012 Build Server (Windows Server 2012) by:
- Installing the Windows SDK from this link:
Microsoft Windows SDK for Windows 7 and .NET Framework 4 - Rerunning the build.
You may need to check that the following Registry Key exists (per the Build error):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A\WinSDK-NetFx35Tools-x86
来源:https://stackoverflow.com/questions/17288619/tfs-2012-build-task-failed-because-resgen-was-not-found