简体   繁体   English

如何在Visual Studio 2015中使用IIS(不表达)?

[英]How do I use IIS (not express) with Visual Studio 2015?

I have an ASP .NET web site project that was developed in Visual Studio 2012. We just migrated the project to Visual Studio 2015. 我有一个在Visual Studio 2012中开发的ASP .NET网站项目。我们刚刚将项目迁移到Visual Studio 2015。

I've googled around and I keep reading about a "Create Virtual Directory" button and a "Use Local IIS" option but neither are present. 我已经google了一下,我一直在阅读“创建虚拟目录”按钮和“使用本地IIS”选项,但两者都不存在。 In the project properties page all I see are the options "Use default Web server" and "Use custom server" along with a "Base URL" text field. 在项目属性页面中,我看到的是“使用默认Web服务器”和“使用自定义服务器”选项以及“基本URL”文本字段。

I'm running Visual Studio 2015 on Windows 10 Pro. 我在Windows 10 Pro上运行Visual Studio 2015。

What am I missing? 我错过了什么?

Have you enabled IIS in Windows Features? 您是否在Windows功能中启用了IIS?

  • Press the Windows Key and type Windows Features. 按Windows键并键入Windows功能。
  • Select the first entry Turn Windows Features On or Off. 选择第一个条目打开或关闭Windows功能。
  • Make sure the box next to IIS is checked. 确保选中IIS旁边的框。 If it is not checked, check it and it will install everything you need. 如果没有选中,请检查它,它将安装您需要的一切。 Be patient as this could take a few minutes. 请耐心等待,因为这可能需要几分钟时间。

IIS should now be accessible from Control Panel > Administrative Tools 现在可以从“控制面板”>“管理工具”访问IIS

You should now be able to go to the properties page of you application and change your website setting from IIS Express to Local IIS 您现在应该可以转到应用程序的属性页面,并将您的网站设置从IIS Express更改为本地IIS

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

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