Skip to content

Commit 7caec7e

Browse files
authored
Merge pull request #5838 from dibarbet/use_correct_runtime_dll
Use the installed dotnet runtime to exec the dll on MacOS instead of the CLI version
2 parents 6fa1cb2 + 90859e9 commit 7caec7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lsptoolshost/roslynLanguageServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ export class RoslynLanguageServer {
433433
if (serverPath.endsWith('.dll')) {
434434
// If we were given a path to a dll, launch that via dotnet.
435435
const argsWithPath = [ serverPath ].concat(args);
436-
childProcess = cp.spawn('dotnet', argsWithPath, cpOptions);
436+
childProcess = cp.spawn(dotnetExecutablePath, argsWithPath, cpOptions);
437437
} else {
438438
// Otherwise assume we were given a path to an executable.
439439
childProcess = cp.spawn(serverPath, args, cpOptions);

0 commit comments

Comments
 (0)