YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

New Topic Post Reply
Using file extension of ".generated.cs" removes color-coding from static text Options · View
Guest
#1 Posted : Wednesday, October 21, 2009 9:36:08 PM Attach Quote
Rank: Guest

Groups:

Joined: 3/16/2009
Posts: 1,005
First of all, nice job on the product. I do extensive T4 templating work and I just found some time to try it out (being a Clarius user got me by). However, I found a conflict with how T4 Editor works vs. how I choose to create my templates...

I use an extension of ".generated.cs" for my templated C# files to differentiate them from standard C# files (pretty common approach by Sych, Hanselman, etc.), but setting the output extension to that causes T4 Editor to stop color-coding the static code in my templates.

Color-codes static text:
<#@ output extension="cs" #>
or
<#@ output extension=".cs" #>

Doesn't color-code static text:
<#@ output extension="generated.cs" #>
or
<#@ output extension=".generated.cs" #>

The color-code change is immediate so I'm sure T4 Editor is regularly comparing the value to a known set and changing color-coding behavior on-the-fly accordingly.

Is there a way to tell T4 Editor that this extension is still a C# file? VS has no problem recognizing it as such. If that is not configurable, can the product be enhanced to just look for the last part of the extension to determine when it should enable functionality?

Thanks.
tangible
#2 Posted : Saturday, October 24, 2009 1:17:28 PM Attach Quote
Rank: Guest

Groups:

Joined: 3/16/2009
Posts: 1,005
Good point. Indeed you are right we should look at the last .cs only. For the moment you need to switch to ".cs" but we will change this in a coming release. Thank you for sharing your feedback
Quick Reply Show Quick Reply
Users browsing this topic
Guest
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.074 seconds.