tfs 2012 build task failed because “resgen” was not found

青春壹個敷衍的年華 提交于 2019-12-11 10:14:00

问题


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:

  1. Installing the Windows SDK from this link:
    Microsoft Windows SDK for Windows 7 and .NET Framework 4
  2. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!