Visual Studio 不会打开 safari 进行调试 [英] Visual studio won't open safari for debugging
本文介绍了Visual Studio 不会打开 safari 进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试调试我编写的 .netcore api.我能够调试,但现在 Visual Studio 无法打开 safari.
I am trying to debug .netcore api's which I wrote. I was able to debug, but now Visual Studio does not open safari.
当我尝试运行该项目并输入 https://localhost:5000/projectname
时,它告诉我我的计算机处于离线模式,这不是真的.
When I try to run the project and enter https://localhost:5000/projectname
, it tells me that my computer is in offline mode, which isn't true.
我使用的是 MacBook Pro 和 VS for Mac.
I'm using a MacBook Pro and VS for Mac.
推荐答案
我通过删除 https 证书并生成新证书解决了问题在终端上使用以下命令:
I solved the issues by deleting my https certificate and generating a new one Using the following commands on the terminal:
删除:
dotnet dev-certs https --clean
要生成一个新的:
dotnet dev-certs https --trust
这篇关于Visual Studio 不会打开 safari 进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文