简体   繁体   中英

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: 在此输入图像描述 Here I could select a URL for my application and stuff like that.

However, in Visual studio 2015 it looks like this: 在此输入图像描述

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... :)

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:

在此输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM