问题 为什么在我的ASP.NET Core Web API中仅使用
dotnet run
而不使用
http
?
尾
我正在研究练习 - 从ASP.NET团队中创建一个最小的API。根据本练习的第3个部分的第3项,https
命令的输出还应包括Scaffold a Project
dotnet run
。
但是,在我的Windows 10机器上,输出仅包括
https
路径(如下所示),尽管我首先运行了https://localhost:7200
以信任自singing证书。
命令信任证书
http
输出
dotnet dev-certs https --trust
PS C:\Users\MyUserName> dotnet dev-certs https --trust
Trusting the HTTPS development certificate was requested. A confirmation prompt will be displayed if the certificate was not previously trusted. Click yes on the prompt to trust the certificate.
Successfully trusted the existing HTTPS certificate.
dotnet run