我正在尝试使用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,但仍然没有运气。有任何想法或建议都将不胜感激。
谢谢。