You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" batch file sets up the PATH environment variable to include, for example:
That logic is in an if statement for only when the current runtime is 64-bit but the MSBuild.exe found is not 64-bit. Is this from a 32-bit development environment? I'm curious how its finding the 64-bit MSBuild.exe but doesn't think the current process is already 64-bit.
@jogietze Have you tried the latest version and still hit this? I think I saw it happen yesterday but when I updated SlnGen to the latest version it started working.
The "%PROGRAMFILES%\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" batch file sets up the PATH environment variable to include, for example:
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\\MSBuild\Current\Bin\amd64
Your detection logic here...
https://github.com/microsoft/slngen/blob/main/src/Shared/DevelopmentEnvironment.cs#L182
...appends an extra
amd64
without checking if the path exists, and fails:The text was updated successfully, but these errors were encountered: