[英]Can't launch dotnet-watch configuration in debug mode asp.net core 6 mac m1 Rider
啟動時,它會顯示Cannot open assembly '/usr/local/share/dotnet/dotnet': File does not contain a valid CIL image.
.
我安裝了兩個版本的平台:.net 6 和 .net core 3.1。 這是我的launchSettings.json
:
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:23641",
"sslPort": 44387
}
},
"profiles": {
"Web": {
"commandName": "Project",
"dotnetRunMessages": true,
"applicationUrl": "https://localhost:7047;http://localhost:5148",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Watch": {
"commandName": "Executable",
"executablePath": "dotnet",
"workingDirectory": "$(ProjectDir)",
"commandLineArgs": "watch run"
}
}
}
這兩種模式都適用於Web
配置。 但這需要我在進行許多更改時重新啟動它。 .NET 6 熱重載默認啟用。
我不明白到底出了什么問題。 我通過卸載所有.NETs
並一一重新安裝它並檢查調試能力來解決此問題。 我想問題出在我首先安裝了用於 x64 架構的Core 3
和 arm64 .NET 6
之后。 或者,也許是.NET 6
特定版本的問題,因為它是第一個版本。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.