How to make Visual Studio 2010 publish like 2008
I recently converted a proje开发者_如何学编程ct to Visual Studio 2010 and now I can't figure out how to get it to publish like I did in 2008. In 2008 I started a publish and told it the folder I wanted all the files dropped into. Then I zipped them myself and copied them to the server. Is that not possible in VS2010?
I tried "Build deployment Package" but that created a zip file with all my code buried down about 20 folders. Far from convenient.
Just right click on the website root in the Solution Explorer (highlighted in my partial screenshot), and choose "Publish Web Site" from the context menu.
This will bring up the Publish dialog, where you can specify the drop location.
Edit based on comments below
If this is a Web Applicaiton Project, it's slightly different, but still possible. You still right click and choose"Publish" BUT change the "Publish Method" to "File System"
精彩评论