gpt4 book ai didi

c# - 更新到 dotnet 6 后,dotnet run 无法正常工作

转载 作者:行者123 更新时间:2023-12-05 00:43:30 32 4
gpt4 key购买 nike

我昨天从 .Net 5 更新到 .Net 6,现在我的项目无法从 dotnet run 开始。然后我得到错误:

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.

我已经尝试了删除/清理并再次创建的所有步骤,但这并没有帮助。服务器启动,但无法从浏览器连接。

我使用 Mac OS 11

有人有想法吗?

最佳答案

在我的项目中运行 dotnet clean 之后,我遇到了类似的问题,然后再次构建和运行。

关于c# - 更新到 dotnet 6 后,dotnet run 无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69916598/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com