MSBuild MyApp.sln /t:Rebuild /p:Configuration=Release
// 使用特定的 sdk 版本和生成工具
MSBuild tightvnc2015.sln /t:rebuild /p:Configuration=Release;TargetPlatformVersion=10.0.17134.0;PlatformToolset=v142;Platform=x64 -m
MSBuild MyApp.csproj /t:Clean
/p:Configuration=Debug;/p:Platform=x86;TargetFrameworkVersion=v3.5
-p
Specified attribute property from https://docs.microsoft.com/zh-cn/visualstudio/msbuild/common-msbuild-project-properties?view=vs-2019 obtained
The following attributes are ignored on the documentation
- TargetPlatformVersion
- SDK version: Windows 10 SDK (10.0.17134.0), if you choose from the command line, you need to fill in the complete version number, such as: 10.0.17134.0
- If the file is modified:
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
fill in 10
- PlatformToolset
- Generation tool version:
MSVC v142 - VS 2019 C++ x64/86 生成工具(v14.23)
- Just fill in v142, there is a special value for xp system: v140_xp
- Generation tool version: