简体   繁体   English

在IIS中部署MVC 6应用程序

[英]Deploy MVC 6 app in IIS

我正在使用Visual Studio Express 2015RC,我创建了一个简单的MVC 6应用程序,但是当我尝试发布它时,我没有看到将它部署到IIS的选项,我看到了选项Microsoft Azure Web App,导入和文件系统,我尝试了文件系统但看起来更像是创建独立应用程序从控制台启动,现在,在调试时我可以选择IIS Express或web命令,没有IIS选项,所以问题是,如何将我创建的MVC6 Web应用程序部署到IIS?

File System publish is actually exactly what you want; 文件系统发布实际上就是你想要的; All DNX applications are stand-alone, whether for ASP.NET 5 or a console app. 所有DNX应用程序都是独立的,无论是ASP.NET 5还是控制台应用程序。

When you publish to the File System, you get a few folders; 当您发布到文件系统时,您会得到一些文件夹; the wwwroot (assuming you kept the default in your project.json ) folder is where IIS should point. wwwroot (假设你保留了project.json的默认值)文件夹是IIS应该指向的位置。 The web.config in that folder is generated for you automatically assuming you keep everything else where it is. 该文件夹中的web.config会自动为您生成,假设您保留其他所有内容。

For what it's worth, the official documentation will probably be here , once it's written. 对于它的价值, 官方文档可能会在这里写完。 Also, on Stack Overflow, ASP.NET 5 project hosting on IIS probably has some useful information, though it looks like it's a bit out of date at the moment. 此外,在Stack Overflow上, IIS上的ASP.NET 5项目托管可能有一些有用的信息,虽然它看起来有点过时了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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