Skip to content

Instantly share code, notes, and snippets.

@dodheim
Last active June 29, 2017 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dodheim/d79bdbc1c0865313ea5c25c52e1fea29 to your computer and use it in GitHub Desktop.
Save dodheim/d79bdbc1c0865313ea5c25c52e1fea29 to your computer and use it in GitHub Desktop.
Visual C++ prerelease tools property sheet
<!--
Updated for VS2017; Intel compiler support removed
REQUIRES CHANGES TO USER PROJECT FILE
-->
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
lib/native/bin/amd64 dir needs to exist!
import just before Microsoft.Cpp.Default.props
-->
<PropertyGroup Condition="'$(VCToolsInstallDir_150)' == ''">
<UsingVisualCppToolsPre>true</UsingVisualCppToolsPre>
<VCToolsInstallDir_150>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\..\lib\native'))\</VCToolsInstallDir_150>
<_VC_x64_ToolsInstalled Condition="'$(_VC_x64_ToolsInstalled)' == ''">true</_VC_x64_ToolsInstalled>
</PropertyGroup>
</Project>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
import just after Microsoft.Cpp.props
-->
<PropertyGroup Condition="'$(UsingVisualCppToolsPre)' == 'true'">
<VCToolsInstallDir_150_Orig>$(VsInstallRoot)\VC\Tools\MSVC\$(VCToolsVersion)\</VCToolsInstallDir_150_Orig>
<DebugCppRuntimeFilesPath Condition="'$(DebugCppRuntimeFilesPath)' != '' and '$(UseDebugLibraries)' == 'true'">$(DebugCppRuntimeFilesPath.Replace('$(VCToolsInstallDir_150)', '$(VCToolsInstallDir_150_Orig)'))</DebugCppRuntimeFilesPath>
</PropertyGroup>
<PropertyGroup Condition="'$(UsingVisualCppToolsPre)' == 'true' and '$(VC_CRT_SourcePath)' != '' and '$(VC_SourcePath)' != ''">
<VC_CRT_SourcePath_Fixed>$(VCToolsInstallDir_150_Orig)crt\src;</VC_CRT_SourcePath_Fixed>
<VC_SourcePath>$(VC_SourcePath.Replace('$(VC_CRT_SourcePath)', '$(VC_CRT_SourcePath_Fixed)'))</VC_SourcePath>
<VC_CRT_SourcePath>$(VC_CRT_SourcePath_Fixed)</VC_CRT_SourcePath>
<VC_CRT_SourcePath_Fixed />
</PropertyGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment