ASP.NET web site publishing via command line

Hello!

Does anybody know how to publish ASP.NET web site via command line. I want to automate this process, but I did not find tool (in Visual Studio 2005 or .NET Framework 2.0) to perform this action.

Does anybody know another way to publish web site (for example via COM or SDK assemblies), if such tool does not exist

L.G.



Answer this question

ASP.NET web site publishing via command line

  • Ghenadie - MSFT

    Unfortunately XCopy does not work for FTP locations, it works only for local network resources.

    There are probably no utilities for help in remote publishing...

    Thank you for help!

    L.G.


  • Lostlogic

    As I understood, CruiseControl.NET makes possible to run different utilities after some changes in sources. But I can not find utility which to does publish.

    May another way of use CruiseControl.NET exists

    L.G.


  • qrli

    Use the Publisher element of the project node in the CC.
  • Stephen S.

    For ASP.NET 2.0 web sites you can use the "aspnet_compiler.exe" tool.

    http://msdn2.microsoft.com/en-us/library/ms229863.aspx

    Rgds

    Rodrigo


  • Cool Screen Name

    Hi, Rodrigo.

    Thank you for your answer.

    The fact I am used the "aspnet_compiler.exe" utility from before but I need in remote web site publishing via FTP and I want automate this process too. "aspnet_compiler.exe" can only compile ASP.NET 2.0 web sites but not publishing its via FTP.

    May you know other way

    L.G.


  • averge joe

    LG,

    In that case, I would combine aspnet_compiler with some ftp transfer utility.... or you can develop your own tool.... I think this will be the best option and it won't take too much time.

    Please find a link to msdn in where you can find some examples on how to upload and download data from a ftp site using the FtpWebRequest and related classes.

    http://windowssdk.msdn.microsoft.com/en-gb/library/system.net.ftpwebrequest.aspx

    Hope it helps

    Rgds

    Rodrigo


  • Chen CH

    You could try CruiseControl.Net. It is an automated build and deploy tool.


    http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET



  • Bigmo

    Unfortunately XCopy does not work for FTP locations, it works only for local network resources.

    There are probably no utilities for help in remote publishing...

    Thank you for help!


  • m_umair_85

    Thank for interesting link!

    But nevertheless I want to use ready utility...

    I know that Visual Studio 2005 has "Copy Web Site" tool. May the utility which does this action exists or you know other high-level utility for work with FTP and delivering with Visual Studio 2005


  • Alastair Q

    well, I could not find any other tool of VS to imitate the "copy web site"..... what about "xcopy".... does it work for ftp locations

    Rgds

    Rodrigo


  • ASP.NET web site publishing via command line