microsoft / vswhere

Locate Visual Studio 2017 and newer installations
MIT License
923 stars 98 forks source link

Provide a 64bits executable #306

Closed malaterre closed 11 months ago

malaterre commented 11 months ago

It would be nice to also provide a build of vswhere.exe as 64 bits executable.

Up until now nanoserver can only execute 64bits executable:

Other tools (cl, msbuild, dumpbin) from vs_buildtool seems to work fine on nanoserver.

Thanks

heaths commented 11 months ago

Windows Nanoserver is not supported: https://learn.microsoft.com/visualstudio/releases/2022/system-requirements#supported-operating-systems. A number of executables in the installer are also x86 only and could not be installed on Nanoserver, and since vswhere required information maintained by the installer, it would serve no purpose without it.

Given that and because x86 works on both x64 and ARM64, we feel only an x86 executable is necessary at this time. If you're copying executables to Nanoserver, you can record e.g., via environment variable(s), to where those were copied and use that variables in automation.