ASP.NET 5 MVC6错误:项目不是Web项目

her*_*rrh 15 c# asp.net asp.net-core-mvc visual-studio-2015 asp.net-core

我从私有git存储库克隆了一个现有的ASP.NET 5 MVC 6项目.当我运行该项目时,我收到以下错误:

The selected debug option is IIS Express but this project is not a web project. To use IIS Express you need tho add the wwwroot attribute to project.json. 错误

wwwroot文件夹也未正确显示,并显示为普通文件夹.

在此输入图像描述

安装Visual Studio 2015 - 更新1

Joe*_*tte 14

确保从http://get.asp.net安装asp.net rc1 update 1


paw*_*pal 7

我有同样的问题.

对我来说,将此行添加到project.json文件的顶部解决了这个问题.

"webroot": "wwwroot",
 "version": "1.0.0-*",
Run Code Online (Sandbox Code Playgroud)