Skip to content

Commit

Permalink
Attempt to fix the extension not finding Mono (dotnet#5484)
Browse files Browse the repository at this point in the history
Should fix dotnet#5454
  • Loading branch information
ArtyIF authored Dec 11, 2022
1 parent 7d75b56 commit 2c61b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/getMSBuildInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function getMSBuildVersion(): Promise<string | undefined> {
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];
Expand Down

0 comments on commit 2c61b60

Please sign in to comment.