Visual Studio 2015无法启动IIS Express [英] Visual Studio 2015 can't start IIS Express

查看:1000
本文介绍了Visual Studio 2015无法启动IIS Express的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在Visual Studio 2015中运行ASP.Net Core项目时,会出现Microsoft Visual Studio对话框项目不知道如何运行配置文件IIS Express。

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 Express".

有没有人知道这条消息,或者如何修复它?我搜索过谷歌和MSDN。构建日志或Windows事件日志中没有任何内容。

Does anyone know anything about this message, or how to fix it? I've searched Google and the MSDN. There's nothing in the build logs, or the Windows event log.

推荐答案

此对话框显示当我将一个项目从dotnet RC1迁移到RC2时,对我来说。

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

在修复之前我仍然可以使用 dotnet run 并从Visual Studio中选择IIS Express以外的配置文件。

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

我误读了这个指南并忘记 .Web


\ DNX \ Microsoft.DNX.targets - > \ DotNet.Web \ Microsoft.DotNet。 Web。目标

修复此问题并重新启动Visual Studio(不确定是否需要)后,我可以使用IIS Express配置文件运行项目。

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

这篇关于Visual Studio 2015无法启动IIS Express的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆