<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Understanding T4: MSBuild Integration</title>
	<link>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/</link>
	<description>Interfaces are like alcohol - they are a lot of fun when used in moderation.</description>
	<pubDate>Sat, 04 Feb 2012 05:27:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: The mapping and metadata information for EntityContainer &#8216;x&#8217; no longer matches the information used to create the pre-generated views &#171; Javier Valero González</title>
		<link>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3484</link>
		<dc:creator>The mapping and metadata information for EntityContainer &#8216;x&#8217; no longer matches the information used to create the pre-generated views &#171; Javier Valero González</dc:creator>
		<pubDate>Fri, 13 Jan 2012 11:15:22 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3484</guid>
		<description>[...] http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3483 [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] <a href="http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3483" rel="nofollow">http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3483</a> [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javier</title>
		<link>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3483</link>
		<dc:creator>Javier</dc:creator>
		<pubDate>Thu, 12 Jan 2012 09:10:12 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3483</guid>
		<description>Hello

    I am using diferent .tt files in a project but i want make the execution during TFS buil only on one of the .tt files.

   I add the tags in de project file but i need to know how can i select only one .tt file. I use de msbuild command into a pre-build event, but a i prefer put the entry into the project file. 

Using the msbuild command this is my .csproj file

  
  
    false
    false
    true


If i put the TransformOnBuild = true all the .tt files are procesed, but in one of the files i receive the error (Could not obtain DTE from host) and i can´t find a solution, this is the reason to use a filter.</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>    I am using diferent .tt files in a project but i want make the execution during TFS buil only on one of the .tt files.</p>
<p>   I add the tags in de project file but i need to know how can i select only one .tt file. I use de msbuild command into a pre-build event, but a i prefer put the entry into the project file. </p>
<p>Using the msbuild command this is my .csproj file</p>
<p>    false<br />
    false<br />
    true</p>
<p>If i put the TransformOnBuild = true all the .tt files are procesed, but in one of the files i receive the error (Could not obtain DTE from host) and i can´t find a solution, this is the reason to use a filter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter c</title>
		<link>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3460</link>
		<dc:creator>peter c</dc:creator>
		<pubDate>Fri, 21 Oct 2011 19:53:57 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3460</guid>
		<description>Oleg, or Filipe,

Regarding the error found by Maxim ( Could not obtain DTE from host) ---  how in MSBUILD do we get the host ? 
Below is a full list of the MSBuild errors I see . 
Thanks, Peter 
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TextTemplating\v10.0\Microsoft.TextTemplating.targets(396,5): error : Running transformation: System.ArgumentNullException: Value cannot be null. [C:\xx.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TextTemplating\v10.0\Microsoft.TextTemplating.targets(396,5): error : Parameter name: Could not obtain DTE from host [C:\xxx.csproj]</description>
		<content:encoded><![CDATA[<p>Oleg, or Filipe,</p>
<p>Regarding the error found by Maxim ( Could not obtain DTE from host) &#8212;  how in MSBUILD do we get the host ?<br />
Below is a full list of the MSBuild errors I see .<br />
Thanks, Peter<br />
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TextTemplating\v10.0\Microsoft.TextTemplating.targets(396,5): error : Running transformation: System.ArgumentNullException: Value cannot be null. [C:\xx.csproj]<br />
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TextTemplating\v10.0\Microsoft.TextTemplating.targets(396,5): error : Parameter name: Could not obtain DTE from host [C:\xxx.csproj]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo</title>
		<link>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3432</link>
		<dc:creator>Ricardo</dc:creator>
		<pubDate>Tue, 28 Jun 2011 11:11:56 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3432</guid>
		<description>Hi, i have a custom tool and i would like to integrate with msbuild. I already read that isn't supported but anyone have an idea to resolve this?</description>
		<content:encoded><![CDATA[<p>Hi, i have a custom tool and i would like to integrate with msbuild. I already read that isn&#8217;t supported but anyone have an idea to resolve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Generate Output from T4 at Build Time &#124; Marius Bancila's Blog</title>
		<link>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3409</link>
		<dc:creator>Generate Output from T4 at Build Time &#124; Marius Bancila's Blog</dc:creator>
		<pubDate>Wed, 04 May 2011 07:28:01 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3409</guid>
		<description>[...] Understanding T4: MSBuild Integration    build, msbuild, T4, template, VS2010 Hits for this post: 1 .  Address: http://mariusbancila.ro/blog/2011/05/04/generate-output-from-t4-at-build-time/    &#171; Finding Installed Applications with VC++     Trackbackno comment untill now [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Understanding T4: MSBuild Integration    build, msbuild, T4, template, VS2010 Hits for this post: 1 .  Address: <a href="http://mariusbancila.ro/blog/2011/05/04/generate-output-from-t4-at-build-time/" rel="nofollow">http://mariusbancila.ro/blog/2011/05/04/generate-output-from-t4-at-build-time/</a>    &laquo; Finding Installed Applications with VC++     Trackbackno comment untill now [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Filipe Romano</title>
		<link>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3381</link>
		<dc:creator>Filipe Romano</dc:creator>
		<pubDate>Tue, 29 Mar 2011 17:24:00 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3381</guid>
		<description>@Maxim and Olivier,

You can't get the DTE object when running the transformation outside the VS Host. This error occurs, for example when running the transformation within a Team Build (the MSBuild Host does not "know" the DTE object).
I think this should not happen in Olivier's case, but I'll have to try it first.</description>
		<content:encoded><![CDATA[<p>@Maxim and Olivier,</p>
<p>You can&#8217;t get the DTE object when running the transformation outside the VS Host. This error occurs, for example when running the transformation within a Team Build (the MSBuild Host does not &#8220;know&#8221; the DTE object).<br />
I think this should not happen in Olivier&#8217;s case, but I&#8217;ll have to try it first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olivier Van Hege</title>
		<link>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3318</link>
		<dc:creator>Olivier Van Hege</dc:creator>
		<pubDate>Tue, 14 Dec 2010 11:00:25 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3318</guid>
		<description>Hi Oleg,

First of all let me thank you for your extended article on the subject and your general contribution to the T4 community.
Now, I am facing the same problem as Maxim (see comment number 14) and get the following exception when the transformation is run from within my Visual Studio when the project builds: 
Error 1	Running transformation: System.ArgumentNullException: Value cannot be null.
Parameter name: Could not obtain DTE from host
   at Microsoft.VisualStudio.TextTemplating41FDF5B3010E4E4C9D7658B293ACAB45.GeneratedTextTransformation.EntityFrameworkTemplateFileManager.VsEntityFrameworkTemplateFileManager..ctor(Object textTemplating) in c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\EF.Utility.CS.ttinclude:line 1867
   at Microsoft.VisualStudio.TextTemplating41FDF5B3010E4E4C9D7658B293ACAB45.GeneratedTextTransformation.EntityFrameworkTemplateFileManager.Create(Object textTransformation) in c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\EF.Utility.CS.ttinclude:line 1702
   at Microsoft.VisualStudio.TextTemplating41FDF5B3010E4E4C9D7658B293ACAB45.GeneratedTextTransformation.TransformText() in c:\Projects\Afda\Main\Afda\Afda.DAL\AfdaModel.Context.tt:line 288
   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation(TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String&#38; result). Line=0, Column=0	Afda.DAL

All files have been previously checked out but it doesn't help.

Any support would be appreciated.

Thank you in advance, kind regards,
Olivier</description>
		<content:encoded><![CDATA[<p>Hi Oleg,</p>
<p>First of all let me thank you for your extended article on the subject and your general contribution to the T4 community.<br />
Now, I am facing the same problem as Maxim (see comment number 14) and get the following exception when the transformation is run from within my Visual Studio when the project builds:<br />
Error 1	Running transformation: System.ArgumentNullException: Value cannot be null.<br />
Parameter name: Could not obtain DTE from host<br />
   at Microsoft.VisualStudio.TextTemplating41FDF5B3010E4E4C9D7658B293ACAB45.GeneratedTextTransformation.EntityFrameworkTemplateFileManager.VsEntityFrameworkTemplateFileManager..ctor(Object textTemplating) in c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\EF.Utility.CS.ttinclude:line 1867<br />
   at Microsoft.VisualStudio.TextTemplating41FDF5B3010E4E4C9D7658B293ACAB45.GeneratedTextTransformation.EntityFrameworkTemplateFileManager.Create(Object textTransformation) in c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\EF.Utility.CS.ttinclude:line 1702<br />
   at Microsoft.VisualStudio.TextTemplating41FDF5B3010E4E4C9D7658B293ACAB45.GeneratedTextTransformation.TransformText() in c:\Projects\Afda\Main\Afda\Afda.DAL\AfdaModel.Context.tt:line 288<br />
   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation(TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String&amp; result). Line=0, Column=0	Afda.DAL</p>
<p>All files have been previously checked out but it doesn&#8217;t help.</p>
<p>Any support would be appreciated.</p>
<p>Thank you in advance, kind regards,<br />
Olivier</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kendall</title>
		<link>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3307</link>
		<dc:creator>Kendall</dc:creator>
		<pubDate>Thu, 11 Nov 2010 07:17:41 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3307</guid>
		<description>Hi Oleg

I am trying to use the MSBuild extentions however some of my templates use VS variables in reference assembly directive, i.e 

This works fine is VS2010 but not in the msbuild host.  Any suggestion how I can reference an assembly with a relative path and work in both the VS2010 host and the msbuild host.

thanks
Kendall</description>
		<content:encoded><![CDATA[<p>Hi Oleg</p>
<p>I am trying to use the MSBuild extentions however some of my templates use VS variables in reference assembly directive, i.e </p>
<p>This works fine is VS2010 but not in the msbuild host.  Any suggestion how I can reference an assembly with a relative path and work in both the VS2010 host and the msbuild host.</p>
<p>thanks<br />
Kendall</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maxim</title>
		<link>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3239</link>
		<dc:creator>Maxim</dc:creator>
		<pubDate>Mon, 20 Sep 2010 17:45:31 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3239</guid>
		<description>Cannot make it work. I updated my project file and I got the following error:
"Running transformation: System.ArgumentNullException: Value cannot be null.
Parameter name: Could not obtain DTE from host"

I might miss something very important, but I don't know what. Could you please publish your "t4msbuild" project so I could compare with my project and fix the problem.

Maxim</description>
		<content:encoded><![CDATA[<p>Cannot make it work. I updated my project file and I got the following error:<br />
&#8220;Running transformation: System.ArgumentNullException: Value cannot be null.<br />
Parameter name: Could not obtain DTE from host&#8221;</p>
<p>I might miss something very important, but I don&#8217;t know what. Could you please publish your &#8220;t4msbuild&#8221; project so I could compare with my project and fix the problem.</p>
<p>Maxim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3214</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Tue, 17 Aug 2010 11:06:45 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration/#comment-3214</guid>
		<description>Hi Oleg,
I've managed to fix my problem, i'm not sure why it didn't occur to me to try it earlier, but i just needed to set the TransformOutOfDateOnly property to false.
Thanks for your blog, it's a wonderfully comprehensive resource.</description>
		<content:encoded><![CDATA[<p>Hi Oleg,<br />
I&#8217;ve managed to fix my problem, i&#8217;m not sure why it didn&#8217;t occur to me to try it earlier, but i just needed to set the TransformOutOfDateOnly property to false.<br />
Thanks for your blog, it&#8217;s a wonderfully comprehensive resource.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

