Data-Oriented-House / PortableBuildTools

Portable VS Build Tools installer
623 stars 21 forks source link

Not compatible with vcpkg #20

Closed perrylets closed 7 hours ago

perrylets commented 3 months ago

When configuring Cmake with vcpkg, the following message appears:

-- Running vcpkg install
Fetching registry information from https://github.com/microsoft/vcpkg (HEAD)...
error: in triplet x64-windows: Unable to find a valid Visual Studio instance
Could not locate a complete Visual Studio instance

-- Running vcpkg install - failed
CMake Error at %VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake:902 (message):
  vcpkg install failed.  See logs for more information:
  .\build\vcpkg-manifest-install.log
perrylets commented 3 months ago

This is the log, not useful at all really

Fetching registry information from https://github.com/microsoft/vcpkg (HEAD)...
error: in triplet x64-windows: Unable to find a valid Visual Studio instance
Could not locate a complete Visual Studio instance
milnak commented 2 months ago

I tried the tutorial here and repro the same thing.

andyneff commented 16 hours ago

I think cmake focuses on locating MSBuild.exe for identifying Build tools. And my install of 14.41.34120 does not have MSBuild.exe

munohikari commented 7 hours ago

Yeah, I'm not adding msbuild to this program. What you want is a full Build Tools installation from Microsoft, not a minimal portable one like this. Get this instead: https://aka.ms/vs/17/release/vs_BuildTools.exe