admin管理员组

文章数量:1389768

I installed dotnet sdk by using shell script downloaded from here: and set DOTNET_ROOT environment variable.

dotnet --info looks like below;

.NET SDK:
 Version:           8.0.407
 Commit:            cac65f27eb
 Workload version:  8.0.400-manifests.20e9918b
 MSBuild version:   17.11.26+2b19be476

런타임 환경:
 OS Name:     endeavouros
 OS Version:  
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /home/username/.dotnet/sdk/8.0.407/

설치된 .NET 워크로드:
새 매니페스트를 설치할 때 loose manifests을(를) 사용하도록 구성됩니다.
표시할 설치된 워크로드가 없습니다.

Host:
  Version:      8.0.14
  Architecture: x64
  Commit:       1584e49360

.NET SDKs installed:
  8.0.407 [/home/username/.dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.14 [/home/username/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.14 [/home/username/.dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [/home/username/.dotnet]

global.json file:
  Not found

But when I build and run my program on vscode, output says below;

You must install .NET to run this application.

App: /home/username/VSC/LibTest/bin/Debug/net8.0/LibTest
Architecture: x64
App host version: 8.0.14
.NET location: Not found

How to fix dotnet ef tool, .NET Location not found
pac command -> .NET location: Not found

Dotnet 6 dotnet-ef fails after install

I found some questions on stack overflow, but path looks proper.

Is there anything wrong with the settings?

I installed dotnet sdk by using shell script downloaded from here: https://dotnet.microsoft/ko-kr/download/dotnet/scripts and set DOTNET_ROOT environment variable.

dotnet --info looks like below;

.NET SDK:
 Version:           8.0.407
 Commit:            cac65f27eb
 Workload version:  8.0.400-manifests.20e9918b
 MSBuild version:   17.11.26+2b19be476

런타임 환경:
 OS Name:     endeavouros
 OS Version:  
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /home/username/.dotnet/sdk/8.0.407/

설치된 .NET 워크로드:
새 매니페스트를 설치할 때 loose manifests을(를) 사용하도록 구성됩니다.
표시할 설치된 워크로드가 없습니다.

Host:
  Version:      8.0.14
  Architecture: x64
  Commit:       1584e49360

.NET SDKs installed:
  8.0.407 [/home/username/.dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.14 [/home/username/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.14 [/home/username/.dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [/home/username/.dotnet]

global.json file:
  Not found

But when I build and run my program on vscode, output says below;

You must install .NET to run this application.

App: /home/username/VSC/LibTest/bin/Debug/net8.0/LibTest
Architecture: x64
App host version: 8.0.14
.NET location: Not found

How to fix dotnet ef tool, .NET Location not found
pac command -> .NET location: Not found

Dotnet 6 dotnet-ef fails after install

I found some questions on stack overflow, but path looks proper.

Is there anything wrong with the settings?

Share Improve this question edited Mar 17 at 6:37 Ulrich Eckhardt 17.5k5 gold badges31 silver badges60 bronze badges asked Mar 15 at 8:53 DaybreakFlowerDaybreakFlower 113 bronze badges 1
  • I solved the problem! I uninstalled c# extension in visual studio, and reinstall it. And it works – DaybreakFlower Commented Mar 15 at 9:01
Add a comment  | 

1 Answer 1

Reset to default 0

i thinks vs code error please refresh pc and try again then after its work properly .

本文标签: quotNET location Not foundquot in visual studio codeStack Overflow