Running MSBuild fails to read SDKToolsPath

I couldn’t face putting Visual Studio on the build server.

The SDK v7.0A is the SDK installed with Visual Studio 2010 (The A indicates this is a VS release). Since then, a newer version has been released. Microsoft Windows SDK for Windows 7 and .NET Framework AKA v7.1.

I’ve installed this on my build server. And then via the Windows SDK 7.1 Command Prompt (Start => All Programs => Microsoft Windows SDK 7.1), I set the default version of the SDK to be 7.1.

Steps:

cd Setup

WindowsSdkVer.exe -version:v7.1

Edit to include LordHits’ comment: one doesn’t need to install the entire SDK. Installing just the “.NET Development/Intellisense and Reference Assemblies” and “.NET Development/Tools” options is enough.

Leave a Comment