首页 > 其他 > 详细

该项目不知道如何运行配置文件 IIS Express。

时间:2019-10-25 11:20:25      阅读:804      评论:0      收藏:0      [点我收藏+]

原文:该项目不知道如何运行配置文件 IIS Express。

方案1(推荐).

可能原因是:禁用掉Microsft ASP.NET和Web工具扩展微软Azure的应用程序服务工具扩展,恢复启用即可.

I have a couple of computers I work between for the samples I use on this blog and when switching to between of them I got the following error last week.

The project doesn’t know how to run the profile IIS Express.

I verified the project would still run on the other computer with no issues. I also verified that on the computer with the issues the project would still work using dotnet run from the command line still worked.

Next, I went to verify the project properties. Here I noticed a strange thing on the computer with the error the Debug tab of the project properties was missing a lot of setting. The following is a screen shot of the computer with the issues.

技术分享图片

And here is the same tab on the same project, but from a different computer.

技术分享图片

The cause

After more time that I would like to admit I was able to track down the issue. On the computer with the issue, I often work on projects that are very large which tend to slow down Visual Studio pretty bad. In an effort to speed things up a bit I when through and disabled all the extensions that I could including the Microsoft Azure App Service Tools. Turns out that disabling the previous extension caused the Microsft ASP.NET and Web Tools extension to be disabled as well (with no warning).

The solution

The only way I was able to get the project to work properly was to enable both the Microsft ASP.NET and Web Tools extension AND the Microsoft Azure App Service Tools extension. I am not sure why the Microsft ASP.NET and Web Tools extension need the Microsoft Azure App Service Tools extension but based on my experience they are related in some way.

方案2.项目右键属性-->调试 -->启动改为项目即可

技术分享图片

该项目不知道如何运行配置文件 IIS Express。

原文:https://www.cnblogs.com/lonelyxmas/p/11736218.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!