1. 調試時,顯示 405 頁面,http://localhost:5000/index.html
原因:該 url 被瀏覽器緩存,啓動 http://localhost:5000 時,自動跳轉到 index.html 導致不支持
2. Linux 守護進程無法啓動
原因:安裝新版本的運行時後,dotnet 命令路徑發生變化,導致無法啓動程序
3. 調試出現 /usr/local/share/dotnet/sdk/7.0.100/Microsoft.Common.CurrentVersion.targets(3312,5): error MSB3552: 找不到資源文件“**/*.resx”。錯誤
如果是在 linux 或者 mac 上開發,可檢查項目中是否包含 \ 的文件夾,例如 E:\文件數據