Click to See Complete Forum and Search --> : Best way to deploy a website from VS2005 so that it can be frequently updated


TonyLoco23
08-08-2011, 02:45 PM
I am pretty new to using Visual Studio to build websites. I am more accustomed to using Dreamweaver.

In Dreamweaver it is fairly easy to upload webpages to an external host using FTP, you can update the code on a page and in a matter of seconds save it and send it to the external host.

I am now using Visual Studio 2005 and making use of the code behind functionality (i.e. having the server side code in a seperate file), the ultimate goal is to compile the site so that none of the server side code will be visible. In the last website I used "Publish Website" from the build menu of VS2005, which compiles the site into a directory or FTP location of your choice. However that website consisted of just one page, the site I am working on now is much more complex with many pages and directories that will need to be updated quite frequently on an ongoing basis as more and more functioanlity is added to the site.

If I make a small change to a single page, I do not want to have to re-publish the entire website and upload all the files again. I really only want to re-compile and upload that single page. So how would I do that? I note that there is an option on the build menu called "build page" but this does not allow one to specify a directory/ftp location where the page will be compiled, when I click on it, it simply says "Build succeded" but I am not really sure what it did, where did it put the built webpage?

ryanbutler
08-09-2011, 08:24 AM
In VS2010, if you right click your project, there's a choice for Publish, which gives you an FTP option. Normally in production, you don't want to use Debug; you want to use Release. Furthermore, when you build a project, you're updating DLL files in your debug folder, which has the recent code modifications.

Ribeyed
08-10-2011, 04:24 PM
Hi,

some articles for VS2005 PUblish web Sites.

http://msdn.microsoft.com/en-us/library/20yh9f1b(v=vs.80).aspx

http://msdn.microsoft.com/en-us/library/cdt9aht6(v=vs.80).aspx

Not much options compaired to VS2010

http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(WEBAPPLICATIONPROJECTS.PACKAGEPUBLISHOVERVIEW);k(TargetFrameworkMoniker-%22.NETFRAMEWORK%2cVERSION%3dV3.0%22)&rd=true (http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(WEBAPPLICATIONPROJECTS.PACKAGEPUBLISHOVERVIEW);k(TargetFrameworkMoniker-%22.NETFRAMEWORK%2cVERSION%3dV3.0%22)&rd=true)


regards


Ribs

dotnetmind
08-14-2011, 01:39 PM
Some useful trips in this blog http://weblogs.asp.net/scottgu/archive/2010/07/29/vs-2010-web-deployment.aspx

Regards