System Variable for Microsoft SDK

Like the% WINDIR% system variable that we have for the Windows directory, do we have a system variable pointing to the latest Microsoft SDK folder so that I can access sn.exe in my build script?

+3
source share
1 answer

I am running MSBuild 4.0 and my proj ToolsVersion is set to 4.0. The SDK40ToolsPath variable indicates where .NET 4.0 tools are installed. SDK35ToolsPath indicates where the .NET 3.5 tools are installed.

MSBuild reads these variables based on the value of ToolsVersion from the registry: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MSBuild \ ToolsVersions \ 4.0.

+4
source

All Articles