Note that there are some explanatory texts on larger screens.

plurals
  1. POReplicate VS2008 "Publish Web Site" from command line
    text
    copied!<p>I am trying to replicate the exact functionality of this dialogue in Visual Studio 2008 in a build script: <a href="http://i41.tinypic.com/1osl1f.png" rel="noreferrer">alt text http://i41.tinypic.com/1osl1f.png</a></p> <p>This is an ASP.NET web <em>site</em>, not a web <em>application</em>.</p> <p>I have Googled around this and turned up quite a bit of stuff involving MSBuild, but this all seems to concern solutions laid out as ASP.NET Web Applications:</p> <p><a href="http://www.driebier.net/post/Using-MSBuild-to-deploy-visual-studio-2005-web-applications.aspx" rel="noreferrer">http://www.driebier.net/post/Using-MSBuild-to-deploy-visual-studio-2005-web-applications.aspx</a> <a href="http://blog.donnfelker.com/post/TFS-Build-Not-Publishing-Web-Applications.aspx" rel="noreferrer">http://blog.donnfelker.com/post/TFS-Build-Not-Publishing-Web-Applications.aspx</a></p> <p><a href="http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/" rel="noreferrer">This article</a> seems to be relevant to ASP.NET Web Sites, but I find that I'm getting an error when trying to build using those suggestions:</p> <pre> C:\dev\T&A>msbuild /t:_CopyWebApplication /property:OutDir=c:\temp\taweb\ /prope rty:WebProjectOutputDir=c:\temp\taweb\ Microsoft (R) Build Engine Version 3.5.30729.1 [Microsoft .NET Framework, Version 2.0.50727.3074] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 22/04/2009 11:50:42. Project "C:\dev\T&A\TAWeb.sln" on node 0 (_CopyWebApplication target(s)). Building solution configuration "Debug|.NET". C:\dev\T&A\TAWeb.sln : error MSB4057: The target "_CopyWebApplication" does not exist in the project. Done Building Project "C:\dev\T&A\TAWeb.sln" (_CopyWebApplication target(s)) -- FAILED. Build FAILED. "C:\dev\T&A\TAWeb.sln" (_CopyWebApplication target) (1) -> C:\dev\T&A\TAWeb.sln : error MSB4057: The target "_CopyWebApplication" does n ot exist in the project. 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.06 </pre> <p>The solution I'm trying to publish (inherited, not my own) doesn't have .csproj files (where I could import the _CopyWebApplication target from C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets)</p> <p>Perhaps this is a Visual Studio 2005/2008 difference?</p> <p>Anyway, I feel that I'm going down the wrong path there.</p> <p>Essentially I just need to achieve <em>exactly</em> what the above dialogue does, but from the command line.</p> <p>Thanks very much </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload