Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / November 2005

Tip: Looking for answers? Try searching our database.

publish web site from command line

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin Bischoff - 28 Nov 2005 11:35 GMT
Is it possible to invoke the publish web site command in visual studio 2005
from a command line?
(for example, building a solution can be started from the command line with
devenv.exe /build ...).

Thanks,
Martin
Steven Cheng[MSFT] - 29 Nov 2005 06:54 GMT
Hi Martin,

Welcome to MSDN newsgroup.
As for the VS2005's publish website function, it actually do the following
things:
1. Precompile the website (page files and source code , other resources
..) into assemblies

2. Deploy the precompiled site to the target site(location) , it could be
local file dir, IIS vdir (http://)  (local or remote...)

However, in comandline , due to the limitation of UI, we can not complete
the #2 steps mentioned above. Based on my research the we can use the
"aspnet_compiler.exe" tool to precompile our web site and put the
precompiled output website to a local file directory.  Then, we can deploy
that precompiled website to target location.....

In addition, the ASP.NET dev team has also provided a new web deployment
project which is a VS2005 add-on which can provide more advanced
precompilation options and also support command line execution. You can
find some information about the Web deployment project here:

#Visual Studio 2005 Web Deployment Projects (Beta Preview)
http://msdn.microsoft.com/asp.net/reference/infrastructure/wdp/default.aspx

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| Thread-Topic: publish web site from command line
| thread-index: AcX0D8UATGOQbACqRsWzaNT02ET9Pg==
[quoted text clipped - 26 lines]
| Thanks,
| Martin
Martin Bischoff - 29 Nov 2005 08:52 GMT
Hi Steven,
thanks for your answer. I knew about the web deployment project, and in fact
this is what I would like to use. But unfortunately it currently does not
work for me:
http://forums.asp.net/1123813/ShowPost.aspx

I will therefore have a look at aspnet_compiler.exe. I do not need to
publish to a remote site, but only to a local directory.

Thanks and best regards,
Martin

> Hi Martin,
>
[quoted text clipped - 63 lines]
> | Thanks,
> | Martin
Steven Cheng[MSFT] - 29 Nov 2005 09:16 GMT
Thanks for your quick response Martin,

If  there're anything else we can help, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: publish web site from command line
| thread-index: AcX0wioNslQ+TayORiuz7S9qU18Eqw==
| X-WBNR-Posting-Host: 194.209.202.1
| From: =?Utf-8?B?TWFydGluIEJpc2Nob2Zm?= <nitramb4@newsgroup.nospam>
| References:  <EA78A8C3-4A90-4E6C-A384-A2402ACAEB84@microsoft.com>
<TqlqBHL9FHA.1240@TK2MSFTNGXA02.phx.gbl>
| Subject: RE: publish web site from command line
| Date: Tue, 29 Nov 2005 00:52:01 -0800
[quoted text clipped - 50 lines]
| >
| > #Visual Studio 2005 Web Deployment Projects (Beta Preview)

http://msdn.microsoft.com/asp.net/reference/infrastructure/wdp/default.aspx

| > Hope helps. Thanks,
| >
[quoted text clipped - 38 lines]
| > | Thanks,
| > | Martin

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.