Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use a Local IIS with .NET Core, C# 6 and Visual studio 2015?

Previously when working with .net 4.5 and Visual Studio 2013, I could just right click the project, select Web and choose Local IIS like this: enter image description here Here I could select a URL for my application and stuff like that.

However, in Visual studio 2015 it looks like this: enter image description here

How do I use a local IIS? I dont want to start IIS express everytime, I just want to build and then refresh the page like I always have done... :)

like image 466
JOSEFtw Avatar asked Sep 26 '22 21:09

JOSEFtw


1 Answers

That's because in VS 2013 you're using ASP.NET 4.5 -or similar- Web application.

In VS2015 you can also use that one but as you can see in your screenshots that project properties screen is for ASP.Net 5 preview project So, for ASP.Net 5 preview there's no current support for Local IIS.

This screenshot is from VS 2015 with both types of projects:

enter image description here

You can take a look to the ASP.Net 5 roadmap here

ASP.NET 5 Schedule and Roadmap

As a Workaround you can follow the 'manual steps' listed in this other stackoverflow post ASP.NET 5 project hosting on IIS

like image 130
JuanK Avatar answered Oct 03 '22 19:10

JuanK