简体   繁体   English

无法在调试模式下启动 dotnet-watch 配置 asp.net core 6 mac m1 Rider

[英]Can't launch dotnet-watch configuration in debug mode asp.net core 6 mac m1 Rider

On start up, it writes Cannot open assembly '/usr/local/share/dotnet/dotnet': File does not contain a valid CIL image.启动时,它会显示Cannot open assembly '/usr/local/share/dotnet/dotnet': File does not contain a valid CIL image. . .

I have two versions of platform installed: .net 6 and .net core 3.1.我安装了两个版本的平台:.net 6 和 .net core 3.1。 This is my launchSettings.json :这是我的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"
    }
  }
}

Both modes work great with Web configuration.这两种模式都适用于Web配置。 But it requires me to restart it on many changes.但这需要我在进行许多更改时重新启动它。 .NET 6 hot reload is enabled by default. .NET 6 热重载默认启用。

I didn't understand exactly what was wrong.我不明白到底出了什么问题。 I fixed this by uninstalling all .NETs and reinstalling it one by one, with checking the ability to debug.我通过卸载所有.NETs并一一重新安装它并检查调试能力来解决此问题。 I guess that the problem was with that I firstly installed Core 3 which was for x64 architecture and after arm64 .NET 6 .我想问题出在我首先安装了用于 x64 架构的Core 3和 arm64 .NET 6之后。 Or, maybe, it was the problem with the .NET 6 specific version, as it was the first version.或者,也许是.NET 6特定版本的问题,因为它是第一个版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Dotnet 在 Mac ASP.NET Core 3 上意外退出骑手 - Dotnet quit unexpectedly rider on Mac ASP.NET Core 3 在 Mac M1 机器上 - 无法在 Asp.Net Core 3.1 中运行 EF 核心迁移添加、更新 - On Mac M1 machine - Not able to run EF core Migrations Add ,Update in Asp.Net Core 3.1 Mac上的Visual Studio进入调试模式而没有断点,ASP.NET Core提出了不寻常的建议 - Visual Studio on Mac enters debug mode without a breakpoint with an unusual recommendation for ASP.NET Core M1 MacBook Air 上的 Rider 无法解析符号 - Rider on M1 MacBook Air can't resolve symbols asp.net核心TestServer找不到配置 - asp.net core TestServer can't find configuration 无法在 ASP.NET Core 中安装“Microsoft.EntityFrameworkCore.Tools.Dotnet” - Can't install "Microsoft.EntityFrameworkCore.Tools.Dotnet" in ASP.NET Core 无法在 asp.net Core 3.0 web 应用程序中访问命令 dotnet ef - Can't access command dotnet ef in asp.net Core 3.0 web app 此站点无法提供来自 do.net linux 的安全连接 asp.net 核心 - This site can’t provide a secure connection asp.net core from dotnet linux ASP.NET 内核 dll 处于调试模式 - ASP.NET Core dll's in Debug mode 如何在Jetbrains Rider中为ASP.NET CORE 2设置XUnit测试? - How to setup XUnit testing in Jetbrains Rider for ASP.NET CORE 2?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM