visual-studio 使用新的 IIS Express Web 服务器在 Visual Studio 2010 中进行开发?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3355138/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 12:16:06  来源:igfitidea点击:

Developing in Visual Studio 2010 with the new IIS Express web server?

visual-studioiisvisual-studio-2010iis-7.5webmatrix

提问by John K

Although this question isn't directly about code it's related to programming and seems better put here than, say, serverfault or superuser.

尽管这个问题与代码不直接有关,但它与编程有关,并且似乎比服务器故障或超级用户更好。

--
I'm a developer with Visual Studio 2010. Microsoft's newest web server offering for developers is IIS Express. ScottGu indicated this combination is workable:

--
我是 Visual Studio 2010 的开发人员。Microsoft 为开发人员提供的最新 Web 服务器产品是 IIS Express。ScottGu 表示这种组合是可行的

IIS Express will work with VS 2010 and Visual Web Developer 2010 Express, will run on Windows XP and higher systems,

IIS Express 将与 VS 2010 和 Visual Web Developer 2010 Express 一起使用,将在 Windows XP 和更高版本的系统上运行,

The only option I've seen so far, is to download WebMatrixwhich contains and uses IIS Express, but I cannot get it hooked into VS 2010, or to download IIS Express separately.

到目前为止,我看到的唯一选择是下载包含并使用 IIS Express 的WebMatrix,但我无法将其连接到 VS 2010,或者单独下载 IIS Express。

Any ideas?

有任何想法吗?

回答by John K

Current of July 11, 2011

2011 年 7 月 11 日的当前

Visual Studio 2010 Service Pack 1includes the option to use IIS Expressfrom inside VS2010. Blog post.

Visual Studio 2010 Service Pack 1包括从 VS2010 内部使用IIS Express的选项。 博客文章。

Or use the Web Platform Installer.

或者使用Web 平台安装程序

回答by Jesper Palm

I don't think IIS Express is available for Visual Studio 2010 yet.

我不认为 IIS Express 可用于 Visual Studio 2010。

Edit: Found it in Scott's post. http://weblogs.asp.net/scottgu/archive/2010/06/28/introducing-iis-express.aspx

编辑:在 Scott 的帖子中找到它。http://weblogs.asp.net/scottgu/archive/2010/06/28/introducing-iis-express.aspx

We'll be releasing the first public beta of IIS Express shortly. With the beta you'll be able to right-click on a file-system folder and have IIS Express launch a web-site based on that file-system location. We'll also be releasing a patch for VS 2010 and Visual Web Developer 2010 Express later this year that will enable you to automatically launch and use IIS Express in place of VS's built-in ASP.NET Developer Server.

我们将很快发布 IIS Express 的第一个公开测试版。使用 Beta 版,您将能够右键单击文件系统文件夹并让 IIS Express 基于该文件系统位置启动网站。我们还将在今年晚些时候发布 VS 2010 和 Visual Web Developer 2010 Express 的补丁,使您能够自动启动和使用 IIS Express 代替 VS 的内置 ASP.NET Developer Server。

回答by PacificSky

http://www.intrepidstudios.com/blog/2010/7/11/debug-your-net-web-project-with-iis-express-t.aspxhas instructions on using IIS Express with VS2010 if you don't feel like waiting for VS2010 SP1 to be released.

http://www.intrepidstudios.com/blog/2010/7/11/debug-your-net-web-project-with-iis-express-t.aspx有关于在 VS2010 中使用 IIS Express 的说明,如果你不这样做感觉就像在等待 VS2010 SP1 发布。

回答by Cameron Combs

The link to the Visual Studio 2010 Service Pack 1 (not beta any longer) is http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=75568aa6-8107-475d-948a-ef22627e57a5.

Visual Studio 2010 Service Pack 1(不再是测试版)的链接是http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=75568aa6-8107-475d-948a-ef22627e57a5

回答by ankitcsh

Jesper Palm is not correct, I am able to run IIS Express Using Visual Studio after a lot of investigation. What Jaseper is mentioning(ScootGu's blog), I already have read that. Scott is only telling that the patch will be released to run 'IIS Express' within VS2010 IDE but with 'MS Web Matrix Beta 2' It is possible to run IIS EXpress with VS 2010. If u face problem contact me in by e-mail:[email protected]

Jesper Palm 不正确,经过大量调查,我能够使用 Visual Studio 运行 IIS Express。Jaseper 提到的(ScootGu 的博客),我已经读过了。Scott 只是说将发布补丁以在 VS2010 IDE 中运行“IIS Express”,但使用“MS Web Matrix Beta 2”可以在 VS 2010 中运行 IIS EXpress。如果您遇到问题,请通过电子邮件与我联系:[email protected]

回答by Rory Primrose

The current IIS Express Overviewsays that VS2008 and VS2010 integration is going to come in a later release (presumably before the RTM release).

当前的IIS Express 概述说 VS2008 和 VS2010 集成将在以后的版本中出现(大概在 RTM 版本之前)。

A future update to Visual Studio 2010 will add support for IIS Express. You can also manually configure Visual Studio 2008 and Visual Studio 2010 to use IIS Express.

Visual Studio 2010 的未来更新将添加对 IIS Express 的支持。您还可以手动配置 Visual Studio 2008 和 Visual Studio 2010 以使用 IIS Express。

回答by Chris Shepherd

For anyone that can't/doesn't want to install the SP1 beta then this blog postwill show you how you can incorporate it into your debugging in a relatively easy way.

对于任何不能/不想安装 SP1 测试版的人,这篇博文将向您展示如何以一种相对简单的方式将它整合到您的调试中。