build.bat crashes the DOS box

Advertisement

mumble_myopia
Joined:
Posts:
3
Location:
UK

build.bat crashes the DOS box

the line
if not exist "%MSBUILD%" set echo Cannot find MSBUILD (%MSBUILD%, %MSBUILD_COMMUNITY%), install Build Tools for Visual Studio 2022 & exit
causes the DOS box to close. I tried removing the set as it didn't seem appropriate but made no difference. Replacing the line with
if not exist "%MSBUILD%" echo "Bloop"
and all is sweetness and light.
This is running on Windows 10 Pro BTW.
Let me know if any more info needed.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,669
Location:
Prague, Czechia

Re: build.bat crashes the DOS box

Sorry for my late response.
I'm not sure I understand. Do you mean that despite the MSBuild.exe existing (and where exactly?), the batch file stops on that line? It does not for me.
The set part definitely should not be there. That's mistake:
Issue 2340 – Stray "set" command in source code package build script
But it still should not cause problems, as long as the MSBuild.exe is found.
Does it show any error? (run the batch from an existing cmd console window, to see it)

Reply with quote

Advertisement

You can post new topics in this forum