From c166812d94a4fd6bf51c0758d1e7306c5b47ef3e Mon Sep 17 00:00:00 2001 From: Kevin Hoffman Date: Mon, 28 May 2018 16:48:06 -0600 Subject: [PATCH] Allow all builds to happen with Visual Studio 2015 WindowsSdk_71A_* and WindowsSdk_81_* environment variables must be set properly in order to build now. --- README.md | 18 +++++++++++++++++ .../cpp/vshadow.vcxproj | 20 +++++++++++++++---- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3ccd78ec..480f2121 100644 --- a/README.md +++ b/README.md @@ -37,3 +37,21 @@ Other samples repos: This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. + +# Visual Studio 2015 build environment + +You need to have Visual Studio 2015, Windows SDK 7.1, and Windows SDK 8.1 installed. + +You also need to set the following environment variables: + +``` +WindowsSdk_71A_ExecutablePath C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin +WindowsSdk_71A_IncludePath C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include +WindowsSdk_71A_LibraryPath_x64 C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64 +WindowsSdk_71A_LibraryPath_x86 C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib + +WindowsSdk_81_ExecutablePath C:\Program Files (x86)\Windows Kits\8.1\bin\x86 +WindowsSdk_81_IncludePath C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\shared +WindowsSdk_81_LibraryPath_x64 C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64 +WindowsSdk_81_LibraryPath_x86 C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86 +``` diff --git a/Samples/VShadowVolumeShadowCopy/cpp/vshadow.vcxproj b/Samples/VShadowVolumeShadowCopy/cpp/vshadow.vcxproj index 5ee35505..9d586ff0 100644 --- a/Samples/VShadowVolumeShadowCopy/cpp/vshadow.vcxproj +++ b/Samples/VShadowVolumeShadowCopy/cpp/vshadow.vcxproj @@ -135,6 +135,9 @@ false C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Team Tools\Static Analysis Tools\Rule Sets\NativeRecommendedRules.ruleset efsvss-2008-r2-x86 + $(VC_ExecutablePath_x86);$(WindowsSdk_81_ExecutablePath);$(VS_ExecutablePath);$(MSBuild_ExecutablePath);$(SystemRoot)\SysWow64;$(FxCopDir);$(PATH); + $(VC_IncludePath);$(WindowsSdk_81_IncludePath); + $(VC_LibraryPath_x86);$(WindowsSdk_81_LibraryPath_x86);C:\boost\lib true @@ -147,6 +150,9 @@ false C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Team Tools\Static Analysis Tools\Rule Sets\NativeRecommendedRules.ruleset efsvss-2008-r2-x64 + $(VC_ExecutablePath_x64);$(WindowsSdk_81_ExecutablePath);$(VS_ExecutablePath);$(MSBuild_ExecutablePath);$(FxCopDir);$(PATH); + $(VC_IncludePath);$(WindowsSdk_81_IncludePath); + $(VC_LibraryPath_x64);$(WindowsSdk_81_LibraryPath_x64);$(NETFXKitsDir)Lib\um\x64 false @@ -159,6 +165,9 @@ false C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Team Tools\Static Analysis Tools\Rule Sets\NativeRecommendedRules.ruleset efsvss-2008-r2-x86 + $(VC_ExecutablePath_x86);$(WindowsSdk_81_ExecutablePath);$(VS_ExecutablePath);$(MSBuild_ExecutablePath);$(SystemRoot)\SysWow64;$(FxCopDir);$(PATH); + $(VC_IncludePath);$(WindowsSdk_81_IncludePath); + $(VC_LibraryPath_x86);$(WindowsSdk_81_LibraryPath_x86);C:\boost\lib false @@ -171,13 +180,16 @@ false C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Team Tools\Static Analysis Tools\Rule Sets\NativeRecommendedRules.ruleset efsvss-2008-r2-x64 + $(VC_ExecutablePath_x64);$(WindowsSdk_81_ExecutablePath);$(VS_ExecutablePath);$(MSBuild_ExecutablePath);$(FxCopDir);$(PATH); + $(VC_IncludePath);$(WindowsSdk_81_IncludePath); + $(VC_LibraryPath_x64);$(WindowsSdk_81_LibraryPath_x64);$(NETFXKitsDir)Lib\um\x64 NotUsing Level3 Disabled - EFSVSS_2008;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + EFSVSS_2008;WIN32;_DEBUG;_CONSOLE;_USING_V110_SDK71_;%(PreprocessorDefinitions) false false MultiThreadedDebug @@ -211,7 +223,7 @@ NotUsing Level3 Disabled - EFSVSS_2008;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + EFSVSS_2008;WIN32;_DEBUG;_CONSOLE;_USING_V110_SDK71_;%(PreprocessorDefinitions) false false MultiThreadedDebug @@ -248,7 +260,7 @@ MaxSpeed true true - EFSVSS_2008;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + EFSVSS_2008;WIN32;NDEBUG;_CONSOLE;_USING_V110_SDK71_;%(PreprocessorDefinitions) false MultiThreaded @@ -290,7 +302,7 @@ MaxSpeed true true - EFSVSS_2008;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + EFSVSS_2008;WIN32;NDEBUG;_CONSOLE;_USING_V110_SDK71_;%(PreprocessorDefinitions) false MultiThreaded