swa 启动 - 找不到 dotnet

问题描述 投票:0回答:1

有什么想法可以解决这个问题吗?

 swa start http://localhost:5000 --run "dotnet run --project Client/Admin.Portal.Client.csproj"             --api-location Admin.Portal.Api [run] The command could not be loaded, possibly because: [run]   * You intended to execute a .NET application: [run]       The application 'run' does not exist. [run]   * You intended to execute a .NET SDK command: [run]       No .NET SDKs were found. [run]  [run] Download a .NET SDK: [run] https://aka.ms/dotnet/download [run]  [run] Learn about SDK resolution: [run] https://aka.ms/dotnet/sdk-not-found

这正在工作:

    ❯ dotnet --list-sdks 2.2.402 [/home/dan/.dotnet/sdk]                                                                                                                                                                                                                                                                                    3.1.426 [/home/xxx/.dotnet/sdk] 6.0.416 [/home/xxx/.dotnet/sdk] 7.0.400 [/home/xxx/.dotnet/sdk] 7.0.403 [/home/xxx/.dotnet/sdk] 8.0.100 [/home/xxx/.dotnet/sdk] 8.0.101 [/home/xxx/.dotnet/sdk]

.net command-line-interface
1个回答
0
投票

swa 发现其他 dotnet 可执行文件将其删除,现在它可以工作了

© www.soinside.com 2019 - 2024. All rights reserved.