You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vscode-dotnet-runtime-extension/src/extension.ts
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -510,6 +510,7 @@ export function activate(vsCodeContext: vscode.ExtensionContext, extensionContex
510
510
{
511
511
thrownewEventCancellationError('BadContextualFindPathError',`The find path request was missing required information: a mode, version, architecture, and requestingExtensionId.`);
@@ -307,8 +311,9 @@ Please set the PATH to a dotnet host that matches the architecture ${requirement
307
311
return{
308
312
mode: parts[0]===aspnetCoreString ? 'aspnetcore' : parts[0]===runtimeString ? 'runtime' : 'sdk',// sdk is a placeholder for windows desktop, will never match since this is for runtime search only
309
313
version: parts[1],
310
-
directory: runtime.split(' ').slice(2).join(' ').slice(1,-1)// account for spaces in PATH, no space should appear before then and luckily path is last.
314
+
directory: runtime.split(' ').slice(2).join(' ').slice(1,-1),// account for spaces in PATH, no space should appear before then and luckily path is last.
311
315
// the 2nd slice needs to remove the brackets from the path [path]
process.env.DOTNET_MULTILEVEL_LOOKUP='0';// make it so --list-runtimes only finds the runtimes on that path: https://learn.microsoft.com/en-us/dotnet/core/compatibility/deployment/7.0/multilevel-lookup#reason-for-change
@@ -131,7 +131,7 @@ export class DotnetPathFinder implements IDotnetPathFinder
131
131
* In an install such as homebrew, the PATH is not indicative of all of the PATHs. So dotnet may be missing in the PATH even though it is found in an alternative shell.
132
132
* The PATH can be discovered using path_helper on mac.
process.env.DOTNET_MULTILEVEL_LOOKUP='0';// make it so --list-runtimes only finds the runtimes on that path: https://learn.microsoft.com/en-us/dotnet/core/compatibility/deployment/7.0/multilevel-lookup#reason-for-change
@@ -208,7 +208,7 @@ export class DotnetPathFinder implements IDotnetPathFinder
208
208
if(dotnetsOnPATH&&(dotnetsOnPATH?.length??0)>0)
209
209
{
210
210
this.workerContext.eventStream.post(newDotnetFindPathPATHFound(`Found.NET on the path: ${JSON.stringify(dotnetsOnPATH)}`));
0 commit comments