我如何将我的asp.net项目发布到我的本地iis?

时间:2021-03-11 02:09:25

I've been looking and I've seen a few how-tos but I find them to be somewhat confusing.

我一直在寻找,我已经看到了一些方法,但我发现它们有些令人困惑。

Does anyone have a good tutorial or step by step writeup that's easy to follow for a newbie

有没有人有一个很好的教程或一步一步的写作,新手很容易遵循

4 个解决方案

#1


6  

If you're just looking to run your application under IIS, setting up a virtual directory is pretty straightforward. If you're looking to test publish a build, the web deployment project is the way to go (you can do it from the command line and in VS.Net, it enables a "Publish" right-click option).

如果您只是想在IIS下运行应用程序,那么设置虚拟目录非常简单。如果您要测试发布构建,Web部署项目是可行的方法(您可以从命令行执行此操作,在VS.Net中,它启用“发布”右键单击选项)。

#2


9  

In Visual Studio, go on project properties > tab web and check "Use Local IIS Web Server". Then, it will ask you to if you want to create the virtual directory, answer yes and vouala...you create a IIS virtual directory, when you run your application, they will run on IIS.

在Visual Studio中,转到项目属性>选项卡web并选中“使用本地IIS Web服务器”。然后,它会询问您是否要创建虚拟目录,回答是和vouala ...您创建了一个IIS虚拟目录,当您运行应用程序时,它们将在IIS上运行。

#3


0  

A good place to start would be looking into web deployment projects.

一个好的起点是研究Web部署项目。

This link is for VS2008, but they also exist for VS2005

此链接适用于VS2008,但它们也适用于VS2005

VS2008 Web Deployment Project

VS2008 Web部署项目

#4


0  

You can publish your web app to an iis website. Click on Build > Publish Web app and select to publish to Local IIS website. Job done.

您可以将您的Web应用程序发布到iis网站。单击Build> Publish Web app并选择发布到Local IIS网站。任务完成。

For a local development environment this is fine but if you want to deploy to a test or staging server than look at another solution such as the Web Deployment project or use nant or msbuild.

对于本地开发环境,这很好但是如果要部署到测试或登台服务器而不是查看其他解决方案(如Web部署项目)或使用nant或msbuild。

#1


6  

If you're just looking to run your application under IIS, setting up a virtual directory is pretty straightforward. If you're looking to test publish a build, the web deployment project is the way to go (you can do it from the command line and in VS.Net, it enables a "Publish" right-click option).

如果您只是想在IIS下运行应用程序,那么设置虚拟目录非常简单。如果您要测试发布构建,Web部署项目是可行的方法(您可以从命令行执行此操作,在VS.Net中,它启用“发布”右键单击选项)。

#2


9  

In Visual Studio, go on project properties > tab web and check "Use Local IIS Web Server". Then, it will ask you to if you want to create the virtual directory, answer yes and vouala...you create a IIS virtual directory, when you run your application, they will run on IIS.

在Visual Studio中,转到项目属性>选项卡web并选中“使用本地IIS Web服务器”。然后,它会询问您是否要创建虚拟目录,回答是和vouala ...您创建了一个IIS虚拟目录,当您运行应用程序时,它们将在IIS上运行。

#3


0  

A good place to start would be looking into web deployment projects.

一个好的起点是研究Web部署项目。

This link is for VS2008, but they also exist for VS2005

此链接适用于VS2008,但它们也适用于VS2005

VS2008 Web Deployment Project

VS2008 Web部署项目

#4


0  

You can publish your web app to an iis website. Click on Build > Publish Web app and select to publish to Local IIS website. Job done.

您可以将您的Web应用程序发布到iis网站。单击Build> Publish Web app并选择发布到Local IIS网站。任务完成。

For a local development environment this is fine but if you want to deploy to a test or staging server than look at another solution such as the Web Deployment project or use nant or msbuild.

对于本地开发环境,这很好但是如果要部署到测试或登台服务器而不是查看其他解决方案(如Web部署项目)或使用nant或msbuild。