Microsoft.Build.Utilities.ToolLocationHelper error on TeamCity

百般思念 提交于 2019-12-24 00:43:25

问题


Although my solution is building on my local machine, it throws this error on TeamCity when I use "Visual Studio (sln)" as the runner for the build step:

[Microsoft.Build.Utilities.ToolLocationHelper]::GetPlatformSDKDisplayName($(TargetPlatformIdentifier), $(TargetPlatformVersion))". Method 'Microsoft.Build.Utilities.ToolLocationHelper.GetPlatformSDKDisplayName' not found. Static method invocation should be of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine(ab)).

Any idea what I'm missing on the TeamCity side ? Do I need to change MSBuild runner ?


回答1:


I would suggest this is trying to find the path to the SDK from the Registry and it's unable to find it.

Try installing Visual Studio Community Edition on the build server and this should fix your issue

Visual Studio Community Edition Download Page

Visual Studio 2013 SDK



来源:https://stackoverflow.com/questions/30361105/microsoft-build-utilities-toollocationhelper-error-on-teamcity

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