Message296784
Currently I have VS2017 installed without C++ tooling for .NET development. The C++ tooling breaks other projects I'm working on.
I have VS2015 Community update 3 installed with C++ tooling and the latest compatible Windows SDK.
Before this patch everything builds as expected using PCBuild\build.bat -e. After this patch it fails instantly with
Using "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\\MSBuild\15.0\Bin\msbuild.exe" (found in the Visual Studio 2017 registry)
C:\code\cpython>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\\MSBuild\15.0\Bin\msbuild.exe" "C:\code\cpython\PCbuild\pcbuild.proj" /t:Build /m /nologo /v:m /p:Configuration=Release /p:Platform=Win32 /p:IncludeExternals=true /p:IncludeSSL=true /p:IncludeTkinter=true /p:UseTestMarker= /p:GIT="C:\Program Files\Git\cmd\git.exe"
C:\code\cpython\PCbuild\pythoncore.vcxproj(42,3): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Default.props" was not found. Confirm that the p ath in the <Import> declaration is correct, and that the file exists on disk.
Commenting out the following lines from find_msbuild.bat and everything is back to working
@rem VS 2017 sets exactly one install as the "main" install, so we may find MSBuild in there.
@reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\SxS\VS7" /v 15.0 /reg:32 >nul 2>nul
@if NOT ERRORLEVEL 1 @for /F "tokens=1,2*" %%i in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\SxS\VS7" /v 15.0 /reg:32') DO @(
@if "%%i"=="15.0" @if exist "%%k\MSBuild\15.0\Bin\msbuild.exe" @(set MSBUILD="%%k\MSBuild\15.0\Bin\msbuild.exe")
)
@if exist %MSBUILD% (set _Py_MSBuild_Source=Visual Studio 2017 registry) & goto :found |
|
Date |
User |
Action |
Args |
2017-06-24 19:26:33 | Paxxi | set | recipients:
+ Paxxi, paul.moore, tim.golden, jkloth, ned.deily, zach.ware, steve.dower |
2017-06-24 19:26:33 | Paxxi | set | messageid: <1498332393.79.0.930674186463.issue30687@psf.upfronthosting.co.za> |
2017-06-24 19:26:33 | Paxxi | link | issue30687 messages |
2017-06-24 19:26:33 | Paxxi | create | |
|