diff --git a/src/utils/getMSBuildInfo.ts b/src/utils/getMSBuildInfo.ts index c763fedc3..cb7c1c160 100644 --- a/src/utils/getMSBuildInfo.ts +++ b/src/utils/getMSBuildInfo.ts @@ -19,7 +19,7 @@ export async function getMSBuildVersion(): Promise { const msbuildExeName = join('msbuild', CoreClrDebugUtil.getPlatformExeExtension()); try { - let data = await execChildProcess(`${msbuildExeName} --version --nologo`, process.cwd(), process.env); + let data = await execChildProcess(`${msbuildExeName} -version -nologo`, process.cwd(), process.env); const match = /^(\d+\.\d+\.\d+\.\d+)$/.exec(data); if (match) { _msbuildVersion = match[1];