[英]dotnet run not working after update to dotnet 6
I updated yesterday from .Net 5 to .Net 6 and now my projects can't start with dotnet run
.我昨天从 .Net 5 更新到 .Net 6,现在我的项目无法从
dotnet run
开始。 I then get the error:然后我得到错误:
Building...
warn: Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer[5]
The ASP.NET Core developer certificate is in an invalid state. To fix this issue, run the following commands 'dotnet dev-certs https --clean' and 'dotnet dev-certs https' to remove all existing ASP.NET Core development certificates and create a new untrusted developer certificate. On macOS or Windows, use 'dotnet dev-certs https --trust' to trust the new certificate.
fail: Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer[4]
The ASP.NET Core developer certificate is in an invalid state. To fix this issue, run the following commands 'dotnet dev-certs https --clean' and 'dotnet dev-certs https' to remove all existing ASP.NET Core development certificates and create a new untrusted developer certificate. On macOS or Windows, use 'dotnet dev-certs https --trust' to trust the new certificate.
I've tried all the steps to remove/clean and create again but that doesn't help.我已经尝试了所有步骤来删除/清理并再次创建,但这没有帮助。 The server starts but no connection from a browser is possible.
服务器启动,但无法从浏览器连接。
I use Mac OS 11我使用 Mac OS 11
Anybody an idea?有人有想法吗?
I had to delete all the SDK's above 3.1.4xx as I am working on 3.1.x Only after that the newly generated dev cert worked.我必须删除所有高于 3.1.4xx 的 SDK,因为我正在使用 3.1.x 只有在新生成的开发证书工作之后。
I will install SDK's later when I work on a newer dotnet core version.稍后我将在使用较新的 dotnet 核心版本时安装 SDK。
MacOS location = /usr/local/share/dotnet/sdk MacOS 位置 = /usr/local/share/dotnet/sdk
MacOS version 12.3 Monterey MacOS 版本 12.3 蒙特雷
我有一个类似的问题,在我的项目中运行dotnet clean
然后再次构建和运行后得到解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.