<?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>Absolutes never work</description>
	<pubDate>Fri, 10 Sep 2010 14:46:17 +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-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>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-1245</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Tue, 21 Apr 2009 11:31:19 +0000</pubDate>
		<guid>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-1245</guid>
		<description>Sean, this may be a bug in T4 Toolbox. Could you post source code and detailed description in the &lt;a href="http://t4toolbox.codeplex.com/Thread/List.aspx" rel="nofollow"&gt;T4 Toolbox forum&lt;/a&gt; on CodePlex? Thanks.</description>
		<content:encoded><![CDATA[<p>Sean, this may be a bug in T4 Toolbox. Could you post source code and detailed description in the <a href="http://t4toolbox.codeplex.com/Thread/List.aspx" rel="nofollow">T4 Toolbox forum</a> on CodePlex? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-1242</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Tue, 21 Apr 2009 02:05:08 +0000</pubDate>
		<guid>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-1242</guid>
		<description>Thank Oleg, but how do I do that. 

I can have it generate code in one big file with " template.Render() ";

but when I try to gernerate it into mutliple files with " template.RenderToFile(entity.Name + "_DataAccess.cs"); "

it gives me the [ Target project “path” does not belong to the solution.] again. I didn't even call the Output.Project property in my code.</description>
		<content:encoded><![CDATA[<p>Thank Oleg, but how do I do that. </p>
<p>I can have it generate code in one big file with &#8221; template.Render() &#8220;;</p>
<p>but when I try to gernerate it into mutliple files with &#8221; template.RenderToFile(entity.Name + &#8220;_DataAccess.cs&#8221;); &#8221;</p>
<p>it gives me the [ Target project “path” does not belong to the solution.] again. I didn&#8217;t even call the Output.Project property in my code.</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-1241</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Mon, 20 Apr 2009 20:40:54 +0000</pubDate>
		<guid>http://www.olegsych.com/2009/03/t4-toolbox-generating-files-in-different-folders-and-projects/#comment-1241</guid>
		<description>Sean, does the project path you specified in the template match the project path you see in the Properties Window when you select the project in Solution Explorer?

Yes, you should be able to leave Output.Project blank and add the files to the target project manually. The file will appear in both projects.</description>
		<content:encoded><![CDATA[<p>Sean, does the project path you specified in the template match the project path you see in the Properties Window when you select the project in Solution Explorer?</p>
<p>Yes, you should be able to leave Output.Project blank and add the files to the target project manually. The file will appear in both projects.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
