【发布时间】:2011-12-29 17:41:54
【问题描述】:
我正在尝试使用 MSBuild Web Deploy 和 TeamCity 构建和部署一个 .NET 4 项目,我在本地开发机器上运行 TeamCity 实例时(最终)可以正常工作,但是当我尝试用相同的设置设置一个新的 TeamCity 实例,我收到以下错误:
\Microsoft.Common.targets(2249, 9): error MSB3086: Task could not find "sgen.exe"
using the SdkToolsPath
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\" or the
registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A".
Make sure the SdkToolsPath is set and the tool exists in the correct processor
specific location under the SdkToolsPath and that the Microsoft Windows SDK
is installed
我正在运行 Windows Server 2008,并安装了 .NET 4,包括(我相信)MSBuild 4。我还安装了 Windows SDK 7.1,因为其他线程表明这可能是问题所在,但仍然没有运气。任何想法或建议将不胜感激。
谢谢
【问题讨论】:
-
我知道你提到过,但这是SDK路径问题。
标签: .net msbuild windows-server-2008 teamcity microsoft-web-deploy