Dynamic Visual Studio path detection #16
Replies: 2 comments 1 reply
-
Thanks @silent-tech! Finding the latest visual studio version is fine, and it's exactly what it's being hardcoded now anyway. Feel free to post the MR, I can review it more in detail and that would be very helpful as it would be the first real PR of the project. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I violated some minor clang formatting rules, and I didn't check them before I committed my changes. Sorry, I fixed them in d52556b. |
Beta Was this translation helpful? Give feedback.
-
Hello Pagghiu,
I found a minor issue: one of my test machines have a VS2022 that is not installed into the default directory. So, Tools and Plugin module couldn't find it. I made an alternate version that uses auto detection instead of constant strings. You can see my solution in these files:
https://github.com/silent-tech/SaneCppLibraries/blob/main/Tools/Tools.bat
https://github.com/silent-tech/SaneCppLibraries/blob/main/Libraries/Plugin/Plugin.cpp
Currently, it finds the latest version, but it can be modified to find specific versions (2019, 2022) as well.
Please review it when you have some free time. If you like it, I would send a pull request to integrate it to the main version.
Beta Was this translation helpful? Give feedback.
All reactions