<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Building .NET 3.5 Applications with Team Build 2005</title>
	<atom:link href="http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/feed/" rel="self" type="application/rss+xml" />
	<link>http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/</link>
	<description>Behind the scenes of TFS Now! - Team Foundation Server hosted by Readify</description>
	<lastBuildDate>Fri, 05 Dec 2008 09:46:49 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul</title>
		<link>http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-105</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 17 Nov 2008 19:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-105</guid>
		<description>oh never mind, I figured it out, it should be a &quot;Web Application&quot; project and change the output to .exe here is the fuller code I used (the middle part is same as yours), this might have an EXTRA using statement or two, but it does work (and works great I must say):

using System;
using Microsoft.CSharp;
using System.Diagnostics;
using System.ComponentModel;
using System.Threading;
using System.IO;

namespace MSBuild
{
    class Program
    {
      public static int  Main(string[] args)
    {
        for (int argIndex=0; argIndex&lt;args.Length;argIndex++)
        {
            if (args[argIndex].Contains(&quot; &quot;))
            {
                string  quotedArg= string.Format(&quot;\&quot;{0}\&quot;&quot;, args[argIndex]);
                args[argIndex]=quotedArg;
            }
        }

    string arguments = string.Join(&quot; &quot;,args);
         Process process =  Process.Start(&quot;C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe&quot;,arguments);


 process.WaitForExit();
    return process.ExitCode;
    }
    }

}</description>
		<content:encoded><![CDATA[<p>oh never mind, I figured it out, it should be a &#8220;Web Application&#8221; project and change the output to .exe here is the fuller code I used (the middle part is same as yours), this might have an EXTRA using statement or two, but it does work (and works great I must say):</p>
<p>using System;<br />
using Microsoft.CSharp;<br />
using System.Diagnostics;<br />
using System.ComponentModel;<br />
using System.Threading;<br />
using System.IO;</p>
<p>namespace MSBuild<br />
{<br />
    class Program<br />
    {<br />
      public static int  Main(string[] args)<br />
    {<br />
        for (int argIndex=0; argIndex&lt;args.Length;argIndex++)<br />
        {<br />
            if (args[argIndex].Contains(&#8221; &#8220;))<br />
            {<br />
                string  quotedArg= string.Format(&#8220;\&#8221;{0}\&#8221;", args[argIndex]);<br />
                args[argIndex]=quotedArg;<br />
            }<br />
        }</p>
<p>    string arguments = string.Join(&#8221; &#8220;,args);<br />
         Process process =  Process.Start(&#8220;C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe&#8221;,arguments);</p>
<p> process.WaitForExit();<br />
    return process.ExitCode;<br />
    }<br />
    }</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-104</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 17 Nov 2008 18:56:43 +0000</pubDate>
		<guid isPermaLink="false">http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-104</guid>
		<description>I feel a little silly, but I was trying to build your MSBuild.exe with your 25 lines of code so graciously provided. But since I am a web developer and not an application developer I&#039;m not sure what type of Visual Studio Project I am supposed to use to create an .exe and I keep getting an error on the process.WaitForExit line, is there some type of using statement or reference that I am supposed to apply to this class?

Thanks so much for your help with this. The idea sounds great, I just need to actually create or get a copy of this .exe</description>
		<content:encoded><![CDATA[<p>I feel a little silly, but I was trying to build your MSBuild.exe with your 25 lines of code so graciously provided. But since I am a web developer and not an application developer I&#8217;m not sure what type of Visual Studio Project I am supposed to use to create an .exe and I keep getting an error on the process.WaitForExit line, is there some type of using statement or reference that I am supposed to apply to this class?</p>
<p>Thanks so much for your help with this. The idea sounds great, I just need to actually create or get a copy of this .exe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Dickinson</title>
		<link>http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-102</link>
		<dc:creator>Jonathan Dickinson</dc:creator>
		<pubDate>Fri, 19 Sep 2008 08:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-102</guid>
		<description>I just put up a &#039;more complete&#039; shim on my blog. It allows you to shim any file (via registry settings) and also supports the standard in, out and error streams, as well as the ctrl+c sequence. This should allow the MSTest.exe file to be shimmed as well (but I am still installing TFS 2005, so this isn&#039;t confirmed).

http://geekswithblogs.net/jcdickinson/archive/2008/09/18/tfs-build-server-2005-with-2008-solutions.aspx</description>
		<content:encoded><![CDATA[<p>I just put up a &#8216;more complete&#8217; shim on my blog. It allows you to shim any file (via registry settings) and also supports the standard in, out and error streams, as well as the ctrl+c sequence. This should allow the MSTest.exe file to be shimmed as well (but I am still installing TFS 2005, so this isn&#8217;t confirmed).</p>
<p><a href="http://geekswithblogs.net/jcdickinson/archive/2008/09/18/tfs-build-server-2005-with-2008-solutions.aspx" rel="nofollow">http://geekswithblogs.net/jcdickinson/archive/2008/09/18/tfs-build-server-2005-with-2008-solutions.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wassup Jose &#187; Blog Archive &#187; TFS 2005 Build Server building 2008 Solutions</title>
		<link>http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-101</link>
		<dc:creator>Wassup Jose &#187; Blog Archive &#187; TFS 2005 Build Server building 2008 Solutions</dc:creator>
		<pubDate>Fri, 18 Jul 2008 18:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-101</guid>
		<description>[...] thanks for making 2008 solutions build seamlessly in TFS2005! I had completely forgotten that a workaround was needed to build 2008 solutions in 2005 msbuild. However, you owe me a fucking apology for [...]</description>
		<content:encoded><![CDATA[<p>[...] thanks for making 2008 solutions build seamlessly in TFS2005! I had completely forgotten that a workaround was needed to build 2008 solutions in 2005 msbuild. However, you owe me a fucking apology for [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vanitha</title>
		<link>http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-100</link>
		<dc:creator>Vanitha</dc:creator>
		<pubDate>Mon, 02 Jun 2008 21:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-100</guid>
		<description>Barry/Tim,

Do you have a resolution to the issue that you are facing regarding getting the builds to run within Team Build? I am facing the same issue now, while the redirection to MSBuild 3.5 works as expected, there seems to be an error and Team Build does not provide any logs for me to determine what might be the issue. My Team Build type was created using VS 2005. Could this be an issue? The same build type works fine using MSBuild 2.0. I appreciate your inputs! 

Thanks!</description>
		<content:encoded><![CDATA[<p>Barry/Tim,</p>
<p>Do you have a resolution to the issue that you are facing regarding getting the builds to run within Team Build? I am facing the same issue now, while the redirection to MSBuild 3.5 works as expected, there seems to be an error and Team Build does not provide any logs for me to determine what might be the issue. My Team Build type was created using VS 2005. Could this be an issue? The same build type works fine using MSBuild 2.0. I appreciate your inputs! </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitch Denny</title>
		<link>http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-98</link>
		<dc:creator>Mitch Denny</dc:creator>
		<pubDate>Fri, 25 Apr 2008 21:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-98</guid>
		<description>At this point I&#039;d recommend upgrading to TFS 2008 as the best course of action.</description>
		<content:encoded><![CDATA[<p>At this point I&#8217;d recommend upgrading to TFS 2008 as the best course of action.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tommy Norman</title>
		<link>http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-97</link>
		<dc:creator>Tommy Norman</dc:creator>
		<pubDate>Mon, 14 Apr 2008 15:51:44 +0000</pubDate>
		<guid isPermaLink="false">http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-97</guid>
		<description>Mitch,
I am consulting for a client where we need to build 3.5 projects on their TFS 2005 server, but they are uncomfortable changing the MSBuild executable. I was going to look into just shelling out to DEVENV and compiling the 3.5 projects from the command line (like you do for building setup projects). I was even contemplating writing a custom build taks to do it that could then take the output and write it to the build log. Before I started I wanted to see if this was way offbase or if you think it acutally might work.

regard,

Tommy</description>
		<content:encoded><![CDATA[<p>Mitch,<br />
I am consulting for a client where we need to build 3.5 projects on their TFS 2005 server, but they are uncomfortable changing the MSBuild executable. I was going to look into just shelling out to DEVENV and compiling the 3.5 projects from the command line (like you do for building setup projects). I was even contemplating writing a custom build taks to do it that could then take the output and write it to the build log. Before I started I wanted to see if this was way offbase or if you think it acutally might work.</p>
<p>regard,</p>
<p>Tommy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oo</title>
		<link>http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-96</link>
		<dc:creator>oo</dc:creator>
		<pubDate>Thu, 03 Apr 2008 16:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-96</guid>
		<description>Thanks.

I&#039;ve developed your idea further - my version of the tool reads TFSBuild.rsp and looks for the MSBuildCommandPath property. If present, the specified command gets called, otherwise the call is handed over to MSBuild-org.exe

TFSBuild.rsp
---------------
/property:MSBuildCommandPath=C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe

This greatly eases our migration path to TFS2008. Cheers,
Olivier</description>
		<content:encoded><![CDATA[<p>Thanks.</p>
<p>I&#8217;ve developed your idea further &#8211; my version of the tool reads TFSBuild.rsp and looks for the MSBuildCommandPath property. If present, the specified command gets called, otherwise the call is handed over to MSBuild-org.exe</p>
<p>TFSBuild.rsp<br />
&#8212;&#8212;&#8212;&#8212;&#8212;<br />
/property:MSBuildCommandPath=C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</p>
<p>This greatly eases our migration path to TFS2008. Cheers,<br />
Olivier</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitch Denny</title>
		<link>http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-93</link>
		<dc:creator>Mitch Denny</dc:creator>
		<pubDate>Thu, 24 Jan 2008 13:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-93</guid>
		<description>Hi guys,

I&#039;d recommend moving to TFS 2008 now, this was just an interim hack.</description>
		<content:encoded><![CDATA[<p>Hi guys,</p>
<p>I&#8217;d recommend moving to TFS 2008 now, this was just an interim hack.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre</title>
		<link>http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-92</link>
		<dc:creator>Andre</dc:creator>
		<pubDate>Tue, 22 Jan 2008 10:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://tfsnow.wordpress.com/2007/08/31/building-net-35-applications-with-team-build-2005/#comment-92</guid>
		<description>Hi Mitch,

I read you solution and I think that this is the same issue within my environment. I had some problems with the /p: arguments, which where treated wrongly. So I changed your code snippet. Here is my solution:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2656654&amp;SiteID=1

cheers,

Andre</description>
		<content:encoded><![CDATA[<p>Hi Mitch,</p>
<p>I read you solution and I think that this is the same issue within my environment. I had some problems with the /p: arguments, which where treated wrongly. So I changed your code snippet. Here is my solution:</p>
<p><a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2656654&amp;SiteID=1" rel="nofollow">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2656654&amp;SiteID=1</a></p>
<p>cheers,</p>
<p>Andre</p>
]]></content:encoded>
	</item>
</channel>
</rss>
