Microsoft.Build.Utilities.ToolLocationHelper error

2019-07-19 13:32发布

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条回答
戒情不戒烟
2楼-- · 2019-07-19 14:06

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

查看更多
登录 后发表回答