<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to publish a web site with MSBuild</title>
	<atom:link href="http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/feed/" rel="self" type="application/rss+xml" />
	<link>http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/</link>
	<description>Getting the job done with .NET</description>
	<lastBuildDate>Mon, 05 Dec 2011 12:06:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: MSBuild by jayempee - Pearltrees</title>
		<link>http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/comment-page-1/#comment-15233</link>
		<dc:creator>MSBuild by jayempee - Pearltrees</dc:creator>
		<pubDate>Mon, 05 Dec 2011 12:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=15#comment-15233</guid>
		<description>[...] How to publish a web site with MSBuild - Coding Cockerel In part two of my MSBuild tutorial I needed to find a way to call Visual Studio’s Publish Web Site feature from MSBuild. Much trawling of the interweb failed to find anything of use, so in the end I had to produce my own target which copied the relevant files into the output folder. The problem with this approach is that it only works for files of type dll, aspx or config. [...]</description>
		<content:encoded><![CDATA[<p>[...] How to publish a web site with MSBuild &#8211; Coding Cockerel In part two of my MSBuild tutorial I needed to find a way to call Visual Studio’s Publish Web Site feature from MSBuild. Much trawling of the interweb failed to find anything of use, so in the end I had to produce my own target which copied the relevant files into the output folder. The problem with this approach is that it only works for files of type dll, aspx or config. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todd W. Powers</title>
		<link>http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/comment-page-1/#comment-13507</link>
		<dc:creator>Todd W. Powers</dc:creator>
		<pubDate>Tue, 20 Sep 2011 01:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=15#comment-13507</guid>
		<description>I was struggling with the same error (MSB4057: The target &quot;_CopyWebApplication&quot; does not exist in the project.

Yes. I was using a Web Application Project (not a web site).

I was baffled because I had one project that worked, and one that did not. So I sat down with ExamDiffPro and went to work comparing the project files. What I found was the section of build target includes at the bottom of the project files were different.

One project (that was working) was created using a newer version of Visual Studio. The other one (that was NOT working) was created years ago and has been upgraded over the years, to the current version I am working with. The upgraded project, evidently didn&#039;t get upgraded with the new build targets as newer versions of Visual Studio became available.

At the bottom of the project file which was working, I found the following:





The second import line was NOT in the project which was causing problems.

I simply copied the import from the working file, and pasted it in the relative location in the non-working file, and viola!

While this is not a direct solution to the initial problem defined in this thread, I hope this helps some of the other people that stumbled across this thread, looking for similar issues, only with actual Web Application Projects.</description>
		<content:encoded><![CDATA[<p>I was struggling with the same error (MSB4057: The target &#8220;_CopyWebApplication&#8221; does not exist in the project.</p>
<p>Yes. I was using a Web Application Project (not a web site).</p>
<p>I was baffled because I had one project that worked, and one that did not. So I sat down with ExamDiffPro and went to work comparing the project files. What I found was the section of build target includes at the bottom of the project files were different.</p>
<p>One project (that was working) was created using a newer version of Visual Studio. The other one (that was NOT working) was created years ago and has been upgraded over the years, to the current version I am working with. The upgraded project, evidently didn&#8217;t get upgraded with the new build targets as newer versions of Visual Studio became available.</p>
<p>At the bottom of the project file which was working, I found the following:</p>
<p>The second import line was NOT in the project which was causing problems.</p>
<p>I simply copied the import from the working file, and pasted it in the relative location in the non-working file, and viola!</p>
<p>While this is not a direct solution to the initial problem defined in this thread, I hope this helps some of the other people that stumbled across this thread, looking for similar issues, only with actual Web Application Projects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter de Witte</title>
		<link>http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/comment-page-1/#comment-8420</link>
		<dc:creator>Peter de Witte</dc:creator>
		<pubDate>Mon, 06 Dec 2010 07:12:47 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=15#comment-8420</guid>
		<description>Another approach can be: Ad a Web Deployment Project to your solution. Building it will do a pretty good job publishing your webapp.</description>
		<content:encoded><![CDATA[<p>Another approach can be: Ad a Web Deployment Project to your solution. Building it will do a pretty good job publishing your webapp.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deployment web site Zip with MsBuild and TeamCity &#124; Climens Codelog</title>
		<link>http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/comment-page-1/#comment-8358</link>
		<dc:creator>Deployment web site Zip with MsBuild and TeamCity &#124; Climens Codelog</dc:creator>
		<pubDate>Tue, 30 Nov 2010 10:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=15#comment-8358</guid>
		<description>[...] How to publish a web site with MsBuild [...]</description>
		<content:encoded><![CDATA[<p>[...] How to publish a web site with MsBuild [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johannes Hansen</title>
		<link>http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/comment-page-1/#comment-7870</link>
		<dc:creator>Johannes Hansen</dc:creator>
		<pubDate>Tue, 21 Sep 2010 14:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=15#comment-7870</guid>
		<description>@The Earl: I&#039;ve just tried that command and I don&#039;t know if it was because I didn&#039;t set &quot;_PackageTempDir&quot; to something but after a while the build started deleting files all over the place. So be very careful using that command!!!</description>
		<content:encoded><![CDATA[<p>@The Earl: I&#8217;ve just tried that command and I don&#8217;t know if it was because I didn&#8217;t set &#8220;_PackageTempDir&#8221; to something but after a while the build started deleting files all over the place. So be very careful using that command!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Earl</title>
		<link>http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/comment-page-1/#comment-7729</link>
		<dc:creator>The Earl</dc:creator>
		<pubDate>Mon, 23 Aug 2010 16:07:36 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=15#comment-7729</guid>
		<description>You can emulate the publish web project menu command by calling the built in &#039;PipelinePreDeployCopyAllFilesToOneFolder&#039; target. 

MSBuild  /T:Clean;Build;PipelinePreDeployCopyAllFilesToOneFolder 
/p:_PackageTempDir=;Configuration=Release

I lost days of my life looking for that one :(</description>
		<content:encoded><![CDATA[<p>You can emulate the publish web project menu command by calling the built in &#8216;PipelinePreDeployCopyAllFilesToOneFolder&#8217; target. </p>
<p>MSBuild  /T:Clean;Build;PipelinePreDeployCopyAllFilesToOneFolder<br />
/p:_PackageTempDir=;Configuration=Release</p>
<p>I lost days of my life looking for that one <img src='http://codingcockerel.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dyadenka</title>
		<link>http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/comment-page-1/#comment-7269</link>
		<dc:creator>Dyadenka</dc:creator>
		<pubDate>Mon, 17 May 2010 16:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=15#comment-7269</guid>
		<description>Sounds quite familiar, usually there is never enough time to catch up with all things :). Just a small correction  - seems like it&#039;s not _CopyWebApplication target that is buggy but rather ResolveReferences one.</description>
		<content:encoded><![CDATA[<p>Sounds quite familiar, usually there is never enough time to catch up with all things <img src='http://codingcockerel.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Just a small correction  &#8211; seems like it&#8217;s not _CopyWebApplication target that is buggy but rather ResolveReferences one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: codingcockerel</title>
		<link>http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/comment-page-1/#comment-7267</link>
		<dc:creator>codingcockerel</dc:creator>
		<pubDate>Mon, 17 May 2010 13:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=15#comment-7267</guid>
		<description>hi Dyadenka, yes you&#039;re right the article is a bit out of date. One of these days I will get time to rewrite it using the latest tools, and all the useful comments people have provided over the last two years.</description>
		<content:encoded><![CDATA[<p>hi Dyadenka, yes you&#8217;re right the article is a bit out of date. One of these days I will get time to rewrite it using the latest tools, and all the useful comments people have provided over the last two years.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dyadenka</title>
		<link>http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/comment-page-1/#comment-7266</link>
		<dc:creator>Dyadenka</dc:creator>
		<pubDate>Mon, 17 May 2010 11:06:35 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=15#comment-7266</guid>
		<description>Hi, nice article, however you may want to update it with Ben&#039;s comment about bug in _CopyWebApplication target. I was fighting that for a few hours until I looked under the article and stumbled upon Ben&#039;s comment.

If you reference 3-rd party assembly (e.g. NHibernate.dll) which in turn depends on some other assembly (e.g. Castle.Core.dll, Iesi.Collections.dll) those third level dependency assemblies are not copied without workaround suggested in that Connect issue that Ben is referring to.</description>
		<content:encoded><![CDATA[<p>Hi, nice article, however you may want to update it with Ben&#8217;s comment about bug in _CopyWebApplication target. I was fighting that for a few hours until I looked under the article and stumbled upon Ben&#8217;s comment.</p>
<p>If you reference 3-rd party assembly (e.g. NHibernate.dll) which in turn depends on some other assembly (e.g. Castle.Core.dll, Iesi.Collections.dll) those third level dependency assemblies are not copied without workaround suggested in that Connect issue that Ben is referring to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajeeth</title>
		<link>http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/comment-page-1/#comment-6735</link>
		<dc:creator>Ajeeth</dc:creator>
		<pubDate>Fri, 19 Feb 2010 08:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=15#comment-6735</guid>
		<description>

	
	
		Output
	

	
		
			
		
		
	

	
		
		
	
</description>
		<content:encoded><![CDATA[<p>Output</p>
]]></content:encoded>
	</item>
</channel>
</rss>

