philippj/SteamworksPy

Using vswhere.exe to locate vs?

Akarinnnnn opened this issue · 6 comments

Actually, not all Visual Studio are installed in C: , , but all vswhere.exe is located in C:\Program Files(x86)\Microsoft Visual Studio\Installer\vswhere.exe .
As it's name shown, vswhere can show where the Visual Studio(s) located. Consider using it?

Are you asking if you should use it?

I meam use this in build script.

Ah, OK. Use this in the build script to locate Visual Studio. Probably not a bad idea considering that installation location will not be the same for everyone. I install mine on my E: drive actually.

Do you know if vswhere.exe returns a usable string? I guess I can always read the README in their repo!

it returns JSON or xml. Use powershell's intregrated xml parser may better.

I'd think parsing JSON would be easier, but I don't really parse XML very often. I'll look into when after getting the rest of it fixed up.

Personally I don't even use the batch file to compile this, I just enter it into command prompt myself.