Visual Studio 2015 can't start IIS Express

前端 未结 10 2183
[愿得一人]
[愿得一人] 2021-01-03 19:52

When I am trying to run an ASP.Net Core project in Visual Studio 2015, a Microsoft Visual Studio dialog appears \"The project doesn\'t know how to run the profile IIS Expres

10条回答
  •  [愿得一人]
    2021-01-03 20:13

    This dialog showed up for me when I had migrated a project from dotnet RC1 to RC2.

    Before the fix I could still run it using dotnet run and from Visual Studio choosing the profile other than "IIS Express".

    I had misread this guide and forgot the .Web

    \DNX\Microsoft.DNX.targets –> \DotNet.Web\Microsoft.DotNet.Web.targets

    After fixing this and restarting Visual Studio(not sure if needed) I could run the project using the IIS Express profile.

提交回复
热议问题