how do i publish my asp.net project to my local iis?

这一生的挚爱 提交于 2019-12-04 17:42:21

问题


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


回答1:


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).




回答2:


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.




回答3:


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

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

VS2008 Web Deployment Project




回答4:


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.

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.



来源:https://stackoverflow.com/questions/1323577/how-do-i-publish-my-asp-net-project-to-my-local-iis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!