<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Codepolice.net &#187; Microsoft.WebApplication.targets</title>
	<atom:link href="http://codepolice.net/tag/microsoftwebapplicationtargets/feed/" rel="self" type="application/rss+xml" />
	<link>http://codepolice.net</link>
	<description>C#, ASP.NET, MVC, LINQ, Wordpress and stuff like that</description>
	<lastBuildDate>Mon, 26 Jul 2010 08:58:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Finally have Subversion + CruiseControl.NET + MSBuild running</title>
		<link>http://codepolice.net/2008/11/06/finally-have-subversion-cruisecontrolnet-msbuild-running/</link>
		<comments>http://codepolice.net/2008/11/06/finally-have-subversion-cruisecontrolnet-msbuild-running/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 16:49:06 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[continuous integration]]></category>
		<category><![CDATA[CruiseControl.NET]]></category>
		<category><![CDATA[Microsoft.WebApplication.targets]]></category>
		<category><![CDATA[MSBuild]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Web application Project]]></category>

		<guid isPermaLink="false">http://www.codepolice.net/?p=33</guid>
		<description><![CDATA[I&#8217;ve been struggling the whole afternoon to get some kind of continuous integration up and running. It started with that i got sick and tired of the Publish feature in Visual Studio 2008 because it just starts to fail from time to time and its kind of impossible to find out why because it doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been struggling the whole afternoon to get some kind of continuous integration up and running. It started with that i got sick and tired of the <strong>Publish</strong> feature in Visual Studio 2008 because it just starts to fail from time to time and its kind of impossible to find out why because it doesn&#8217;t give any kind of error information.</p>
<p>Anyway i started to look at MSBuild and see if it could handle my Publish task and i found <a href="http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/">this great article</a>. It explains how to make a build file that build your project and then also simulate the publish feature and put just the files necessary into a separate folder.</p>
<p>While i was on the subject i thought that i could as well see if i could set up my source control machine to build my app as soon as i check in some files, copy the build to a folder and make that folder a web application.</p>
<p>I actually was kind of easy. I found an <a href="http://msmvps.com/blogs/omar/archive/2008/10/06/asp-net-website-continuous-integration-deployment-using-cruisecontrol-net-subversion-msbuild-and-robocopy.aspx">article by Omar Al Zabir</a> that explains this in great detail.</p>
<p><strong>Not any problem at all?</strong></p>
<p>Ofcourse. The one i had most problem with was the infamous <strong>Microsoft.WebApplication.targets</strong> bug. When you build your project on the build machine you get this error.</p>
<p><em>error MSB4019: The imported project &#8220;C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets&#8221; was not found. Confirm that the path in the &lt;Import&gt; declaration is correct, and that the file exists on disk.</em></p>
<p>I have had this problem before when we migrated a &#8220;Website&#8221; to a &#8220;Web application project&#8221; at my last job. What i remembered from it was that you had to copy the file Microsoft.WebApplication.targets from it&#8217;s location on your dev machine to the build machine. Well fine. The problem in my case was that the file already was there. I looked around for maybe an hour or until i realized that the path on my build machine was:</p>
<p><em>C:\Program Files\MSBuild\Microsoft\Visual Studio\v9.0\WebApplications\Microsoft.WebApplication.targets</em></p>
<p>While on my dev machine it was:</p>
<p><em>C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets</em></p>
<p>Notice the difference? Don&#8217;t you just love Microsoft sometimes .. just copy the path and remove the space from &#8220;Visual Studio&#8221; and it works.</p>
<p>That was actually the only major problem i had. Otherwise i used my brain and the articles i linked to and everything is happy puppy.</p>
<p>Thanks and good night.</p>
<p>Link: <a href="http://codingcockerel.co.uk/2008/05/18/how-to-publish-a-web-site-with-msbuild/">How to publish a web site with MSBuild</a>, <a href="http://msmvps.com/blogs/omar/archive/2008/10/06/asp-net-website-continuous-integration-deployment-using-cruisecontrol-net-subversion-msbuild-and-robocopy.aspx">ASP.NET website Continuous Integration+Deployment using CruiseControl.NET, Subversion, MSBuild and Robocopy</a></p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2008/11/06/finally-have-subversion-cruisecontrolnet-msbuild-running/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->