Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET 5 MVC6 Error: project is not a web project

I cloned an existing ASP.NET 5 MVC 6 project from a private git repository. When I run the project I receive the following error:

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. error

The wwwroot folder is also not shown correctly and is displayed as a normal folder.

enter image description here

Installed Visual Studio 2015 - Update 1

like image 437
herrh Avatar asked Dec 31 '15 13:12

herrh


2 Answers

make sure you install asp.net rc1 update 1 from http://get.asp.net

like image 197
Joe Audette Avatar answered Oct 18 '22 13:10

Joe Audette


I had the same problem.

For me, adding this line to the top of the project.json file solved the issue.

"webroot": "wwwroot",
 "version": "1.0.0-*",
like image 45
pawan nepal Avatar answered Oct 18 '22 13:10

pawan nepal