How to deploy thorugh command prompt?
-
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.
-
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.
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
-
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.
Maybe learn to use MSbuild? I dunno.
-
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.
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
, usingREGASM
for assemblies andREGSVR32
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: