我閱讀
發布檔案

并在沒有 dotnet sdk/runtime 和命令的情況下上傳到 ubuntu,app_name但 ubuntu showapp_name: command not found

uj5u.com熱心網友回復:
并在沒有 dotnet sdk/runtime 的情況下上傳到 ubuntu,并使用命令 app_name 但 ubuntu show app_name: command not found
這意味著該dotnet命令尚未被 識別Ubuntu 22.04 (LTS)。在這種情況下,Install the SDK (which includes the runtime)如果您想開發.NET apps或者,如果您只需要運行應用程式,請使用install the Runtime.
如果您要安裝運行時,Microsoft 的建議是安裝 ASP.NET Core 運行時,因為它包括 .NET 和 ASP.NET Core 運行時。你可以看到here
您將如何檢查安裝是否成功:
您可以.NET SDK通過終端查看當前安裝了哪些版本。打開終端并運行以下命令。
dotnet --list-sdks 查看 SDK 版本串列
dotnet --list-runtimes 檢查 DotNet 運行時版本
dotnet --version 檢查最新安裝的版本
如果仍然遇到command not found意味著您的安裝沒有成功。有關更多詳細資訊,請查看我們的official document here
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/511750.html
