<?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: T4 Toolbox: Generating files in different folders and projects</title>
	<link>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/</link>
	<description>Interfaces are like alcohol - they are a lot of fun when used in moderation.</description>
	<pubDate>Sat, 04 Feb 2012 05:53:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-3417</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Tue, 24 May 2011 19:26:40 +0000</pubDate>
		<guid>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-3417</guid>
		<description>You can generate it as a text file or use the EnvDTE API to create it in object form.</description>
		<content:encoded><![CDATA[<p>You can generate it as a text file or use the EnvDTE API to create it in object form.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guido Smeets</title>
		<link>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-3416</link>
		<dc:creator>Guido Smeets</dc:creator>
		<pubDate>Tue, 24 May 2011 13:50:39 +0000</pubDate>
		<guid>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-3416</guid>
		<description>Is there any (easy) way to automatically generate the .csproj file if the project doesn't exist yet?

I'm stuck generating different EF4CF models from a custom DSL, and I need to generate the different datacontexts into different assemblies due to restrictions on EF's part.</description>
		<content:encoded><![CDATA[<p>Is there any (easy) way to automatically generate the .csproj file if the project doesn&#8217;t exist yet?</p>
<p>I&#8217;m stuck generating different EF4CF models from a custom DSL, and I need to generate the different datacontexts into different assemblies due to restrictions on EF&#8217;s part.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-3300</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 05 Nov 2010 17:46:25 +0000</pubDate>
		<guid>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-3300</guid>
		<description>If T4 Toolbox relies on Visual Studio extensibilty APIs we can set only output project name without knowing where it's on file system and its type.
Thus, we won't depend on output project file system location and its type.
I think it's very flexible.
What do you think, Oleg?</description>
		<content:encoded><![CDATA[<p>If T4 Toolbox relies on Visual Studio extensibilty APIs we can set only output project name without knowing where it&#8217;s on file system and its type.<br />
Thus, we won&#8217;t depend on output project file system location and its type.<br />
I think it&#8217;s very flexible.<br />
What do you think, Oleg?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-2416</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Thu, 05 Nov 2009 14:57:18 +0000</pubDate>
		<guid>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-2416</guid>
		<description>Updated source code example to be compatible with version 9.10 of the T4 Toolbox.</description>
		<content:encoded><![CDATA[<p>Updated source code example to be compatible with version 9.10 of the T4 Toolbox.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-2186</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Sat, 29 Aug 2009 12:58:28 +0000</pubDate>
		<guid>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-2186</guid>
		<description>Zoltan, you can add generated files to the CF project directly instead of using linked files by setting Template.Output.Project property. If that is not sufficient for your scenario, I would encourage you to post details on the T4 Toolbox &lt;a href="http://t4toolbox.codeplex.com/Thread/List.aspx" rel="nofollow"&gt;forum&lt;/a&gt; where we can continue this discussion more productively.</description>
		<content:encoded><![CDATA[<p>Zoltan, you can add generated files to the CF project directly instead of using linked files by setting Template.Output.Project property. If that is not sufficient for your scenario, I would encourage you to post details on the T4 Toolbox <a href="http://t4toolbox.codeplex.com/Thread/List.aspx" rel="nofollow">forum</a> where we can continue this discussion more productively.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zoltan</title>
		<link>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-2182</link>
		<dc:creator>zoltan</dc:creator>
		<pubDate>Sat, 29 Aug 2009 06:01:12 +0000</pubDate>
		<guid>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-2182</guid>
		<description>I encountered a similar problem. I have two project 1 for .NET and 1 for Compact Framework. I use T4 in .NET, and tried to use generated output files in Compact Framework as 'linked files'. Unfortunatelly the code generation remove my file links from CF project. Thanks for  this help page it is solve my problem. One minor problem: I need generate duplicate files into CF folders too. Is there any possibility for support linking?

Thanks,
Zoltan</description>
		<content:encoded><![CDATA[<p>I encountered a similar problem. I have two project 1 for .NET and 1 for Compact Framework. I use T4 in .NET, and tried to use generated output files in Compact Framework as &#8216;linked files&#8217;. Unfortunatelly the code generation remove my file links from CF project. Thanks for  this help page it is solve my problem. One minor problem: I need generate duplicate files into CF folders too. Is there any possibility for support linking?</p>
<p>Thanks,<br />
Zoltan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey Baskakov</title>
		<link>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-1374</link>
		<dc:creator>Alexey Baskakov</dc:creator>
		<pubDate>Wed, 03 Jun 2009 05:12:12 +0000</pubDate>
		<guid>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-1374</guid>
		<description>p.s. So you have to add "Folder" (aka Filter in vcproj) manually. It works.

How about EnvDTE.ProjectItems.AddFilter?</description>
		<content:encoded><![CDATA[<p>p.s. So you have to add &#8220;Folder&#8221; (aka Filter in vcproj) manually. It works.</p>
<p>How about EnvDTE.ProjectItems.AddFilter?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey Baskakov</title>
		<link>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-1373</link>
		<dc:creator>Alexey Baskakov</dc:creator>
		<pubDate>Wed, 03 Jun 2009 05:07:44 +0000</pubDate>
		<guid>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-1373</guid>
		<description>Unfortunally, adding folders doesn't work with vcproj files (see exception below).

Adding just file works fine with vcproj:
template.Output.File = @"SubFolder_SampleOutput.txt";

Bad :(

Error	1	An Exception was thrown while running the transformation code. The process cannot continue.  The following Exception was thrown:
System.NotImplementedException: The method or operation is not implemented.
   at EnvDTE.ProjectItems.AddFolder(String Name, String Kind)
   at T4Toolbox.DteProcessor.AddFolder(ProjectItems collection, String folderName, String basePath)
   at T4Toolbox.DteProcessor.AddToSolution(OutputFile output)
   at T4Toolbox.DteProcessor.UpdateOutputFiles(IEnumerable`1 outputFiles)
   at T4Toolbox.DteProcessor.UpdateFiles(ICollection`1 outputFiles)
   at T4Toolbox.OutputManager.UpdateFiles()
   at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
   at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
   at Microsoft.VisualStudio.TextTemplating5E57A08A9EE60EF3CFDB409E1989F9AD.GeneratedTextTransformation.TransformationContext.OnTransformationEnded(TextTransformation transformation) in c:\Program Files\T4 Toolbox\T4Toolbox\TransformationContext.tt:line 284
   at Microsoft.VisualStudio.TextTemplating5E57A08A9EE60EF3CFDB409E1989F9AD.GeneratedTextTransformation.Dispose(Boolean disposing) in c:\Program Files\T4 Toolbox\T4Toolbox.tt:line 49
   at Microsoft.VisualStudio.TextTemplating.TextTransformation.Dispose()
   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation(String fullClassName, String baseClassName, String[] importedNamespaces, String[] references, String source, String inputFile, Boolean debug, SupportedLanguages language, IDictionary`2 languageOptions, IFormatProvider format, ITextTemplatingEngineHost host, Boolean cacheAssemblies, String&#38; result)		1</description>
		<content:encoded><![CDATA[<p>Unfortunally, adding folders doesn&#8217;t work with vcproj files (see exception below).</p>
<p>Adding just file works fine with vcproj:<br />
template.Output.File = @&#8221;SubFolder_SampleOutput.txt&#8221;;</p>
<p>Bad :(</p>
<p>Error	1	An Exception was thrown while running the transformation code. The process cannot continue.  The following Exception was thrown:<br />
System.NotImplementedException: The method or operation is not implemented.<br />
   at EnvDTE.ProjectItems.AddFolder(String Name, String Kind)<br />
   at T4Toolbox.DteProcessor.AddFolder(ProjectItems collection, String folderName, String basePath)<br />
   at T4Toolbox.DteProcessor.AddToSolution(OutputFile output)<br />
   at T4Toolbox.DteProcessor.UpdateOutputFiles(IEnumerable`1 outputFiles)<br />
   at T4Toolbox.DteProcessor.UpdateFiles(ICollection`1 outputFiles)<br />
   at T4Toolbox.OutputManager.UpdateFiles()<br />
   at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)<br />
   at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)<br />
   at Microsoft.VisualStudio.TextTemplating5E57A08A9EE60EF3CFDB409E1989F9AD.GeneratedTextTransformation.TransformationContext.OnTransformationEnded(TextTransformation transformation) in c:\Program Files\T4 Toolbox\T4Toolbox\TransformationContext.tt:line 284<br />
   at Microsoft.VisualStudio.TextTemplating5E57A08A9EE60EF3CFDB409E1989F9AD.GeneratedTextTransformation.Dispose(Boolean disposing) in c:\Program Files\T4 Toolbox\T4Toolbox.tt:line 49<br />
   at Microsoft.VisualStudio.TextTemplating.TextTransformation.Dispose()<br />
   at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation(String fullClassName, String baseClassName, String[] importedNamespaces, String[] references, String source, String inputFile, Boolean debug, SupportedLanguages language, IDictionary`2 languageOptions, IFormatProvider format, ITextTemplatingEngineHost host, Boolean cacheAssemblies, String&amp; result)		1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-1305</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 13 May 2009 03:26:16 +0000</pubDate>
		<guid>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-1305</guid>
		<description>Oops, my problem has already been raised on CodePlex - sorry!

http://t4toolbox.codeplex.com/WorkItem/View.aspx?WorkItemId=13146</description>
		<content:encoded><![CDATA[<p>Oops, my problem has already been raised on CodePlex - sorry!</p>
<p><a href="http://t4toolbox.codeplex.com/WorkItem/View.aspx?WorkItemId=13146" rel="nofollow">http://t4toolbox.codeplex.com/WorkItem/View.aspx?WorkItemId=13146</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-1304</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 13 May 2009 03:11:25 +0000</pubDate>
		<guid>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-1304</guid>
		<description>if I create a solution folder andd put ClassLibrary2.csproj in it then I get this error:

Target project E:\devplay\ClassLibrary2\ClassLibrary2.csproj does not belong to the solution

Not catastrophic but I use solution folders alot, so would be nice if this worked.</description>
		<content:encoded><![CDATA[<p>if I create a solution folder andd put ClassLibrary2.csproj in it then I get this error:</p>
<p>Target project E:\devplay\ClassLibrary2\ClassLibrary2.csproj does not belong to the solution</p>
<p>Not catastrophic but I use solution folders alot, so would be nice if this worked.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

