msvc package
Close https://github.com/conan-io/conan-recipes-contrib/issues/1
Just a few notes from me:
-
I wouldn't advise renaming
C:/Program Files (x86)/Microsoft Visual Studio/2019toC:/Program Files (x86)/Microsoft Visual Studio/2019_2. This breaks a valid installation, and it's a system location. I would advise packaging the installation with the Windows Sandbox and retrieving the Conan package outside of it (conan upload,conan cache save, etc), or alternatively use the command line interface to the visual studio installer and specify an--installPath -
A working installation of Visual C++ would need access to the Windows SDK (for windows headers and so on) - if I'm not mistaken, those paths would not be copied into the package in the given example, so it is not self-contained
-
CMake seems to use vswhere.exe and query the Windows registry to locate some things (at least the Windows SDK which is not being packaged here) - those may not work.
I'd say this needs more testing - it looks like it only works on a machine that already has visual studio installed
https://gist.github.com/mmozeiko/7f3162ec2988e81e56d5c4e22cde9977 is a good information, thanks @jcar87