Solved

MSDeploy command line + file system

Posted on 2010-09-13
7
1,385 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
  • 2
  • 2
7 Comments
 
LVL 23

Expert Comment

by:Admin3k
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:
Admin3k 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

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:…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

815 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now