首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >更新到dotnet 6后,dotnet运行不起作用

更新到dotnet 6后,dotnet运行不起作用
EN

Stack Overflow用户
提问于 2021-11-10 16:11:45
回答 1查看 608关注 0票数 0

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

代码语言:javascript
复制
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

有谁有主意吗?

EN

回答 1

Stack Overflow用户

发布于 2021-11-16 10:18:45

在项目文件的<PropertyGroup>元素下添加<UseAppHost>false</UseAppHost>。要了解有关此临时问题的更多信息,请查看here

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69916598

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档