logo       

RE: Publishing one page with Visual Studio: msg#00112

Subject: RE: Publishing one page with Visual Studio
For the Web Deployment Project slowing down debugging, I believe you can set 
the build settings for Web Deployment Projects (maybe in the solution 
properties or configure build window)  so that when you're in Debug mode, Web 
Deployment Projects are not built. 

Neil Moomey <neil@xxxxxxxxxxx> wrote:          I wanted to pass on what I've 
learned so far for those interested. Yes,
it's possible to publish one page only when pre-compiling your website.
There are two files created in the bin folder for each web page plus the
aspx page in the root folder. All three files can be copied to the web
server without bringing the website down. As far as I know this must be
done by hand as the files in the bin folder have strange names such as
App_Web_menu.aspx.14a61893.dll and App_Web_menu.aspx.14a61893.pdb for a
page I named menu.aspx. The file copy utility in VS won't let you stray
outside the source code folder so you can't use that. The compiled file
are saved in a separate staging folder.

As for the Web Deployment Project, it seems to be working ok if I select
"Create a separate assembly for each page." but fails when I try to
"Merge all outputs to a single assembly" which I really don't want
anyways. I was hoping the Web Deployment Project actually had a way to
deploy your project with a click on the button or two but I guess that's
too much to ask for. Windows Explorer will have to do. And I can't
simply sort by date to find the updated files either because the whole
site is compiled when you build so I need to remember which pages I
updated or copy the whole site.

Another lesson I learned is the Web Deployment Project really slows down
the build process. Hitting F5 now takes over a minute. I read somewhere
you can configure only the page you are working on to compile but I
haven't figured out how. My workaround is to unload the Web Deployment
Project which I can do by right clicking on it in the Solution Explorer
then Reload it when it's time to deploy. F5 will then compile more
quickly like it used to.

Thanks to everyone who has responded to my posts.

Neil

[Non-text portions of this message have been removed]



         

                
---------------------------------
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/dpFolB/TM
--------------------------------------------------------------------~-> 

 


<Prev in Thread] Current Thread [Next in Thread>