Visual Studio - A faster way to publish?

本小妞迷上赌 提交于 2019-12-11 13:23:58

问题


I have an ASP.NET application in VS2008 that is growing larger and am developing and testing on IIS7, not Cassini/IIS dev, so when I make changes, I publish, run and test.

The publish is taking longer and longer, since there are more and more builds for different projects within the solution. If I want to make simple changes to say an aspx file, instead of publishing, I just modify the published version to avoid the cost of the publish which is a pain.

Is there a better/faster way? Is there something out there that talks about best practices/efficient publish/run/test techniques for VS2008?


回答1:


Personally, I just created a virtual site in my IIS running on port 1337 (Ye, I'm a geek, but I find that funny :P ), which points to the root of my project. I keep a browser open on localhost:1337, press F6 in VS and then F5 in my browser - no need to publish :)

Works like a charm :)




回答2:


simply try to separate data, auto generated files and business layers in different projects, so you won't need to build the all solution, just parts of that. Also make a clone locally, make changes and publish online using repository tools, like GIT or SVN.



来源:https://stackoverflow.com/questions/2321363/visual-studio-a-faster-way-to-publish

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