Skip to content

Commit 2c61b60

Browse files
authored
Attempt to fix the extension not finding Mono (#5484)
Should fix #5454
1 parent 7d75b56 commit 2c61b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/getMSBuildInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function getMSBuildVersion(): Promise<string | undefined> {
1919
const msbuildExeName = join('msbuild', CoreClrDebugUtil.getPlatformExeExtension());
2020

2121
try {
22-
let data = await execChildProcess(`${msbuildExeName} --version --nologo`, process.cwd(), process.env);
22+
let data = await execChildProcess(`${msbuildExeName} -version -nologo`, process.cwd(), process.env);
2323
const match = /^(\d+\.\d+\.\d+\.\d+)$/.exec(data);
2424
if (match) {
2525
_msbuildVersion = match[1];

0 commit comments

Comments
 (0)