From 9f1e007bb2369e476a3795fc8821d87828ec551b Mon Sep 17 00:00:00 2001 From: Albert Ziegenhagel Date: Sat, 29 Aug 2020 13:15:13 +0200 Subject: [PATCH] Do not store explicit versions in the build properties Instead they can be passed as command line arguments to `msbuild`. The README is adjusted accordingly. --- Directory.Build.props | 3 --- README.md | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 3177de8..a3f49ba 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -114,9 +114,6 @@ $(StagingOutputRootPath)$(MSBuildProjectName)\ - 14.15.26726 - 10.0.16299.0 - v141 $(OutputPath) $(Platform)\$(Configuration) $(Configuration) diff --git a/README.md b/README.md index 3ef2a30..10a4ee1 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,11 @@ Earlier versions of MS-MPI are available from the [Microsoft Download Center](ht - Update _GFORTRAN_BIN_ in Derectory.Build.props to the install location of GFortran - [Perl](https://www.perl.org/get.html#win32) - Based on the installed VS/SDK/WDK versions, update _VCToolsVersion_ and _WindowsTargetPlatformVersion_ in Directory.Build.props - Note that the build system uses [CommonBuildToolSet(CBT)](https://commonbuildtoolset.github.io/). You may need to unblock __CBT.core.dll__ (under .build/CBT) depending on your security configurations. Please refer to [CBT documentation](https://commonbuildtoolset.github.io/#/getting-started) for additional details. ## Build -To build, open a __Native Tools Command Prompt for Visual Studio__ and run ``msbuild`` from root folder. +To build, open a __Native Tools Command Prompt for Visual Studio__ and run ``msbuild /p:WindowsTargetPlatformVersion= /p:PlatformToolset=`` from root folder, where `` and `` should be selected based on your installed VS/SDK/WDK versions. # Contributing