<?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: Automating the build with MSBuild (part three)</title>
	<atom:link href="http://codingcockerel.co.uk/2008/05/05/automating-the-build-with-msbuild-part-three/feed/" rel="self" type="application/rss+xml" />
	<link>http://codingcockerel.co.uk/2008/05/05/automating-the-build-with-msbuild-part-three/</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: Zonghe</title>
		<link>http://codingcockerel.co.uk/2008/05/05/automating-the-build-with-msbuild-part-three/comment-page-1/#comment-10162</link>
		<dc:creator>Zonghe</dc:creator>
		<pubDate>Wed, 02 Mar 2011 16:22:32 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=13#comment-10162</guid>
		<description>Superb series for a MSBuild crash course.  Thanks a million~!</description>
		<content:encoded><![CDATA[<p>Superb series for a MSBuild crash course.  Thanks a million~!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny</title>
		<link>http://codingcockerel.co.uk/2008/05/05/automating-the-build-with-msbuild-part-three/comment-page-1/#comment-8869</link>
		<dc:creator>Sunny</dc:creator>
		<pubDate>Tue, 28 Dec 2010 21:19:30 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=13#comment-8869</guid>
		<description>Very nice article. I am quite new to msbuild scripts but u made it quite simple.</description>
		<content:encoded><![CDATA[<p>Very nice article. I am quite new to msbuild scripts but u made it quite simple.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rocky</title>
		<link>http://codingcockerel.co.uk/2008/05/05/automating-the-build-with-msbuild-part-three/comment-page-1/#comment-8098</link>
		<dc:creator>Rocky</dc:creator>
		<pubDate>Tue, 02 Nov 2010 20:09:25 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=13#comment-8098</guid>
		<description>This is an awesome aricle, which could give me an idea on what a build script is..
I am literally new to these build scripts, can you give me an idea on how a script should be inorder to checkout the project from subversion and build it.
and what if we should build the project on a remote server..
we use .net and MSBuild.
It would be of great help if you could assist me..

ThankYou
Rocky</description>
		<content:encoded><![CDATA[<p>This is an awesome aricle, which could give me an idea on what a build script is..<br />
I am literally new to these build scripts, can you give me an idea on how a script should be inorder to checkout the project from subversion and build it.<br />
and what if we should build the project on a remote server..<br />
we use .net and MSBuild.<br />
It would be of great help if you could assist me..</p>
<p>ThankYou<br />
Rocky</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Earl</title>
		<link>http://codingcockerel.co.uk/2008/05/05/automating-the-build-with-msbuild-part-three/comment-page-1/#comment-7730</link>
		<dc:creator>The Earl</dc:creator>
		<pubDate>Mon, 23 Aug 2010 16:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=13#comment-7730</guid>
		<description>You can emulate the publish web project menu command by calling the built in ‘PipelinePreDeployCopyAllFilesToOneFolder’ target.

MSBuild [web project.csproj] /T:Clean;Build;PipelinePreDeployCopyAllFilesToOneFolder
/p:_PackageTempDir=[publish folder];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 ‘PipelinePreDeployCopyAllFilesToOneFolder’ target.</p>
<p>MSBuild [web project.csproj] /T:Clean;Build;PipelinePreDeployCopyAllFilesToOneFolder<br />
/p:_PackageTempDir=[publish folder];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: CSharpGuru</title>
		<link>http://codingcockerel.co.uk/2008/05/05/automating-the-build-with-msbuild-part-three/comment-page-1/#comment-7451</link>
		<dc:creator>CSharpGuru</dc:creator>
		<pubDate>Mon, 21 Jun 2010 22:45:21 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=13#comment-7451</guid>
		<description>Thank you so much for your post. It saved me lots of headaches in a new job trying to set up automated builds in a pretty complex environment...kudos!</description>
		<content:encoded><![CDATA[<p>Thank you so much for your post. It saved me lots of headaches in a new job trying to set up automated builds in a pretty complex environment&#8230;kudos!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: codingcockerel</title>
		<link>http://codingcockerel.co.uk/2008/05/05/automating-the-build-with-msbuild-part-three/comment-page-1/#comment-6838</link>
		<dc:creator>codingcockerel</dc:creator>
		<pubDate>Tue, 09 Mar 2010 12:25:45 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=13#comment-6838</guid>
		<description>Hi Nam,

It might be worth trying some of the other solutions suggested in the comments, particularly those from KJ.</description>
		<content:encoded><![CDATA[<p>Hi Nam,</p>
<p>It might be worth trying some of the other solutions suggested in the comments, particularly those from KJ.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nam Gi VU</title>
		<link>http://codingcockerel.co.uk/2008/05/05/automating-the-build-with-msbuild-part-three/comment-page-1/#comment-6836</link>
		<dc:creator>Nam Gi VU</dc:creator>
		<pubDate>Tue, 09 Mar 2010 10:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=13#comment-6836</guid>
		<description>I&#039;ve used &quot;Run as administrator&quot; the cmd to open the command line and run msbuild but the task WebDirectoryDelete and WebDirectoryCreate failed with error 0x80005000.

Please update solution.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve used &#8220;Run as administrator&#8221; the cmd to open the command line and run msbuild but the task WebDirectoryDelete and WebDirectoryCreate failed with error 0&#215;80005000.</p>
<p>Please update solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KJ</title>
		<link>http://codingcockerel.co.uk/2008/05/05/automating-the-build-with-msbuild-part-three/comment-page-1/#comment-3590</link>
		<dc:creator>KJ</dc:creator>
		<pubDate>Thu, 11 Jun 2009 13:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=13#comment-3590</guid>
		<description>Sorry folks...  here&#039;s a re-post:



I figured it out.

I stopped trying to use the code in my original post because I just couldn’t get it to work, and imported this library instead:

Import Project=(MSBuildExtensionsPath)\SDCTasks\Microsoft.Sdc.Common.tasks


Here’s the code to create and delete web sites in IIS. Please note that this works remotely, meaning I can create and delete web sites on a machine that’s not the TFSBuild machine (providing file system permissions is not an issue of course):

    PropertyGroup
        -- Set properties for web site and app pool operations --
        WebSiteName   MATX.Healthcare.AdminService   /WebSiteName
        ServerName      AUSTX010PROD                           /ServerName
        PortNumber       65501                                           /PortNumber
        IISNetworkDir    D:\Healthcare\AdminService       /IISNetworkDir
   /PropertyGroup


    Target Name=&quot;DeleteWebSiteInIIS&quot;
        Message Text=&quot;****** DeleteWebSiteInIIS&quot;

       Web.WebSite.DeleteWebsite
                MachineName=&quot;(ServerName)
                Description=&quot;(WebSiteName)
    /Target



    Target Name=&quot;CreateWebSiteInIIS&quot;
        Message Text=&quot;******CreateWebSiteInIIS&quot;

        Web.WebSite.Create
                Description=&quot;(WebSiteName)&quot;
                Path=&quot;(IISNetworkDir)&quot;
                MachineName=&quot;(ServerName)&quot;
                Port=&quot;(PortNumber)&quot;
                AppPoolID=&quot;Services&quot;
                DefaultDocs=&quot;AdminService.svc;Default.aspx;Default.html;Default.asp;index.htm&quot;
    /Target


I found and used the info from this web site and it works perfectly:

http://grounding.co.za/blogs/romiko/archive/2008/09/20/msbuild-creating-professional-deployment-scripts-part-1.aspx</description>
		<content:encoded><![CDATA[<p>Sorry folks&#8230;  here&#8217;s a re-post:</p>
<p>I figured it out.</p>
<p>I stopped trying to use the code in my original post because I just couldn’t get it to work, and imported this library instead:</p>
<p>Import Project=(MSBuildExtensionsPath)\SDCTasks\Microsoft.Sdc.Common.tasks</p>
<p>Here’s the code to create and delete web sites in IIS. Please note that this works remotely, meaning I can create and delete web sites on a machine that’s not the TFSBuild machine (providing file system permissions is not an issue of course):</p>
<p>    PropertyGroup<br />
        &#8212; Set properties for web site and app pool operations &#8211;<br />
        WebSiteName   MATX.Healthcare.AdminService   /WebSiteName<br />
        ServerName      AUSTX010PROD                           /ServerName<br />
        PortNumber       65501                                           /PortNumber<br />
        IISNetworkDir    D:\Healthcare\AdminService       /IISNetworkDir<br />
   /PropertyGroup</p>
<p>    Target Name=&#8221;DeleteWebSiteInIIS&#8221;<br />
        Message Text=&#8221;****** DeleteWebSiteInIIS&#8221;</p>
<p>       Web.WebSite.DeleteWebsite<br />
                MachineName=&#8221;(ServerName)<br />
                Description=&#8221;(WebSiteName)<br />
    /Target</p>
<p>    Target Name=&#8221;CreateWebSiteInIIS&#8221;<br />
        Message Text=&#8221;******CreateWebSiteInIIS&#8221;</p>
<p>        Web.WebSite.Create<br />
                Description=&#8221;(WebSiteName)&#8221;<br />
                Path=&#8221;(IISNetworkDir)&#8221;<br />
                MachineName=&#8221;(ServerName)&#8221;<br />
                Port=&#8221;(PortNumber)&#8221;<br />
                AppPoolID=&#8221;Services&#8221;<br />
                DefaultDocs=&#8221;AdminService.svc;Default.aspx;Default.html;Default.asp;index.htm&#8221;<br />
    /Target</p>
<p>I found and used the info from this web site and it works perfectly:</p>
<p><a href="http://grounding.co.za/blogs/romiko/archive/2008/09/20/msbuild-creating-professional-deployment-scripts-part-1.aspx" rel="nofollow">http://grounding.co.za/blogs/romiko/archive/2008/09/20/msbuild-creating-professional-deployment-scripts-part-1.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KJ</title>
		<link>http://codingcockerel.co.uk/2008/05/05/automating-the-build-with-msbuild-part-three/comment-page-1/#comment-3589</link>
		<dc:creator>KJ</dc:creator>
		<pubDate>Thu, 11 Jun 2009 12:57:25 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=13#comment-3589</guid>
		<description>I figured it out.

I stopped trying to use the code in my original post because I just couldn&#039;t get it to work, and imported this library instead:
    

Here&#039;s the code to create and delete web sites in IIS.  Please note that this works remotely, meaning I can create and delete web sites on a machine that&#039;s not the TFSBuild machine (providing file system permissions is not an issue of course):

     
       &lt;!-- Set properties for web site and app pool operations --&gt;
        MATX.Healthcare.AdminService
        AUSTX010PROD
        65501
        D:\Healthcare\AdminService
    


    
        

        
    


    
        &lt;Message Text********** CreateWebSiteInIIS ********** 

        
    


I found and used the info from this web site and it works perfectly:

http://grounding.co.za/blogs/romiko/archive/2008/09/20/msbuild-creating-professional-deployment-scripts-part-1.aspx</description>
		<content:encoded><![CDATA[<p>I figured it out.</p>
<p>I stopped trying to use the code in my original post because I just couldn&#8217;t get it to work, and imported this library instead:</p>
<p>Here&#8217;s the code to create and delete web sites in IIS.  Please note that this works remotely, meaning I can create and delete web sites on a machine that&#8217;s not the TFSBuild machine (providing file system permissions is not an issue of course):</p>
<p>       <!-- Set properties for web site and app pool operations --><br />
        MATX.Healthcare.AdminService<br />
        AUSTX010PROD<br />
        65501<br />
        D:\Healthcare\AdminService</p>
<p>        &lt;Message Text********** CreateWebSiteInIIS ********** </p>
<p>I found and used the info from this web site and it works perfectly:</p>
<p><a href="http://grounding.co.za/blogs/romiko/archive/2008/09/20/msbuild-creating-professional-deployment-scripts-part-1.aspx" rel="nofollow">http://grounding.co.za/blogs/romiko/archive/2008/09/20/msbuild-creating-professional-deployment-scripts-part-1.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: codingcockerel</title>
		<link>http://codingcockerel.co.uk/2008/05/05/automating-the-build-with-msbuild-part-three/comment-page-1/#comment-3518</link>
		<dc:creator>codingcockerel</dc:creator>
		<pubDate>Wed, 03 Jun 2009 19:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://codingcockerel.co.uk/?p=13#comment-3518</guid>
		<description>OK good luck. If you get a decent answer please post a link in the comments. Cheers.</description>
		<content:encoded><![CDATA[<p>OK good luck. If you get a decent answer please post a link in the comments. Cheers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

