[英]Running MVC 5 website without iis or visual studio
I created a website using visual studio 2015 with MVC 5. The website should run locally using local databse. 我使用Visual Studio 2015和MVC 5创建了一个网站。该网站应使用本地数据库在本地运行。 The problem is, I want to run this website as program, without need to install iis or visual studio to run it..
问题是,我想以程序形式运行此网站,而无需安装iis或Visual Studio来运行它。
What can I do? 我能做什么?
ASP.NET MVC is a website and not a program as such. ASP.NET MVC是一个网站,而不是一个程序。 It therefore requires IIS to run.
因此,它需要IIS才能运行。 You don't need Visual Studio however.
但是,您不需要Visual Studio。
If you want a stand-alone executable, you need to use a different UI paradigm. 如果需要独立的可执行文件,则需要使用其他UI范例。 Console, Winforms or Universal Windows App to name just three.
控制台,Winforms或Universal Windows App仅举三个。
Your option is to migrate to dotnet Core which can host web application as a Windows service, or just a Console App. 您的选择是迁移到dotnet Core,该dotnet Core可以将Web应用程序作为Windows服务托管,也可以仅作为控制台应用程序托管。 You dont need Visial Studio to host it at all.
您根本不需要Visial Studio来托管它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.