I have just created a quick ASP.NET 5 MVC 6 app on Visual Studio.NET 2015 RC and would like it to run on my IIS web server on Windows 7.
Normally, when I create a website on IIS, I need to choose an Application Pool, either v2.0 or v4.0 Integrated.
Now because .NET Core comes with all its libraries as nuget packages, how can I run it on IIS? which application pool do I pick? how does this work?
As @wickdninja stated, the below is outdated. Use his updated solution instead : https://docs.microsoft.com/en-us/aspnet/core/publishing/iis To get the application to run on IIS:
Bundle/publish the application using dnu publish
. This will create a self contained package that has the application, the runtime and all the dependencies. Change the runtime name to match the runtime of your choice.
dnu publish --runtime dnx-coreclr-win-x86.1.0.0-beta5-11625
You can even pass --no-source
if you don't want the application to be compiled from sources every time it starts.
Copy the bundle (from bin\\output
) under the website root.
Things that might go wrong:
This question is out of date, and Microsoft has since release pretty thorough documentation for this scenario. You can find it here: https://docs.microsoft.com/en-us/aspnet/core/publishing/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.