Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to deploy thorugh command prompt?

How to deploy thorugh command prompt?

Scheduled Pinned Locked Moved C#
sysadmincsharptutorialquestionannouncement
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BalasubramanianK
    wrote on last edited by
    #1

    Hi, I have tried to deploy my web application (VS2010 + C#) by adding the project output and building a msi setup. But, I want to do these steps through command prompt. Our command scripts will do all the stpes to deploy in server. That command prompt scripts should do the following things 1. Getting latest version of my solution 2. Adding web deployment project and adding project outputs there 3. Building and deploying in a server.. How to do these things thorugh command prompt only? Thanks in advance.

    Balasubramanian K.

    B P L 3 Replies Last reply
    0
    • B BalasubramanianK

      Hi, I have tried to deploy my web application (VS2010 + C#) by adding the project output and building a msi setup. But, I want to do these steps through command prompt. Our command scripts will do all the stpes to deploy in server. That command prompt scripts should do the following things 1. Getting latest version of my solution 2. Adding web deployment project and adding project outputs there 3. Building and deploying in a server.. How to do these things thorugh command prompt only? Thanks in advance.

      Balasubramanian K.

      B Offline
      B Offline
      BillWoodruff
      wrote on last edited by
      #2

      If you are speaking of using a console window with command prompts to do an update and/or installation with all the complexity you describe to a server: how many years do you have to finish this project ? If you don't have years, maybe check out ClickOnce, via search here on CP.

      When I consider the brief span of my life, swallowed up in the eternity before and after, the little space which I fill, and even can see, engulfed in the infinite immensity of spaces of which I am ignorant, and which knows me not, I am frightened, and am astonished at being here rather than there; for there is no reason why here rather than there, now rather than then.

      Blaise Pascal

      1 Reply Last reply
      0
      • B BalasubramanianK

        Hi, I have tried to deploy my web application (VS2010 + C#) by adding the project output and building a msi setup. But, I want to do these steps through command prompt. Our command scripts will do all the stpes to deploy in server. That command prompt scripts should do the following things 1. Getting latest version of my solution 2. Adding web deployment project and adding project outputs there 3. Building and deploying in a server.. How to do these things thorugh command prompt only? Thanks in advance.

        Balasubramanian K.

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Maybe learn to use MSbuild? I dunno.

        1 Reply Last reply
        0
        • B BalasubramanianK

          Hi, I have tried to deploy my web application (VS2010 + C#) by adding the project output and building a msi setup. But, I want to do these steps through command prompt. Our command scripts will do all the stpes to deploy in server. That command prompt scripts should do the following things 1. Getting latest version of my solution 2. Adding web deployment project and adding project outputs there 3. Building and deploying in a server.. How to do these things thorugh command prompt only? Thanks in advance.

          Balasubramanian K.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          BalasubramanianK wrote:

          1. Getting latest version of my solution

          That depends on the type of source-control that you're using. I described the steps to download source from sourcesafe here[^], as part of a daily build script. There are similar options for other source-control systems like tortoise and SVN. Simply google the productname and "get source commandline".

          BalasubramanianK wrote:

          2. Adding web deployment project and adding project outputs there

          You don't point the project output there, you COPY the resulting assemblies. Don't mess around with settings if you don't have to.

          BalasubramanianK wrote:

          3. Building and deploying in a server..

          You can generally deploy using XCOPY, using REGASM for assemblies and REGSVR32 for COM-server that need be registered. Building can be done using the IDE and some commmand-line options, but it would be recommendable to use MSBuild[^], as suggested by PIEBald.

          Bastard Programmer from Hell :suss:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups