Solved

MSDeploy command line + file system

Posted on 2010-09-13
7
1,392 Views
Last Modified: 2013-11-26
Given and SLN file, I need to build, then deploy my web application to a specified location using comand line tools only.

0
Comment
Question by:iziizi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
7 Comments
 
LVL 23

Expert Comment

by:Mohamed Osama
ID: 33715952
This works for me for a similar purpose
first it does TF  get from the TFS source control, Compiles , builds and publishes the website.
"%PROGRAMFILES%\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe"  get "C:\DEV\Website /recursive

"%PROGRAMFILES%\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe  "C:\DEV\solution.sln" /build Release
(can also be done using MSbuild.exe)

aspnet_compiler -v /Website -p  C:\DEV  -aptca C:\Website



now is there any additional added value you wish to achieve by using Msdeploy ?






0
 

Author Comment

by:iziizi
ID: 33892057
Sorry, this is not what is required. I need to use tools which do not rely on TFS  - I am using Hudson for automatic builds and error checking. I want to add in a script to execute after a build to publish the site using hudson.
0
 

Author Comment

by:iziizi
ID: 33892062
as above.
0
 
LVL 23

Accepted Solution

by:
Mohamed Osama earned 500 total points
ID: 33897469
It would have helped if you gave such information in the initial post, mentioned a CI build or something similar
anyway since this appears to be still visual studio the below part should do what you need once you have got latest from your repository
"%PROGRAMFILES%\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe  "C:\DEV\solution.sln" /build Release

(can also be done using MSbuild.exe)

aspnet_compiler -v /Website -p  C:\DEV  -aptca C:\Website

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question