Skip to content

Improved the SetupWSLcross.bat for Visual Studio partially installed - #653

Closed
Micheus wants to merge 1 commit into
dgud:masterfrom
Micheus:mv/fix-wsl-not-full-visual_studio
Closed

Micheus wants to merge 1 commit into
dgud:masterfrom
Micheus:mv/fix-wsl-not-full-visual_studio

Conversation

@Micheus

@Micheus Micheus commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

The added parameter fixes an issue with SetupWSLcross.bat that was not intializing VCVARSALL when Visual Studio Integrated Development Environment was not installed. In my case I use only the Visual Studio Build Tools 2022.

In accordance with the documentation of vswhere.exe, the -products * parameter returns all products, including the Build Tools, and allows SetupWSLcross.bat to find the installation path of Visual Studio Build Tools 2022 and initialize VCVARSALL.

NOTE: Improved the SetupWSLcross.bat

The added parameter fixes an issue with SetupWSLcross.bat that was not
intializing VCVARSALL when  Visual Studio Integrated Development Environment
was not installed. In my case I use only the Visual Studio Build Tools 2022.

In accordance with the documentation of vswhere.exe, the -products * parameter
returns all products, including the Build Tools, and allows SetupWSLcross.bat
to find the installation path of Visual Studio Build Tools 2022 and initialize
VCVARSALL.

NOTE: Improved the SetupWSLcross.bat
@Micheus Micheus closed this Sep 10, 2026
@Micheus
Micheus deleted the mv/fix-wsl-not-full-visual_studio branch September 10, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant