Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Guest
#1 Posted : Thursday, October 22, 2009 12:36:08 AM(UTC)
Guest
Rank: Guest

Groups: Guest
Joined: 3/17/2009(UTC)
Posts: 1,084

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 4:17:28 PM(UTC)
Guest
Rank: Guest

Groups: Guest
Joined: 3/17/2009(UTC)
Posts: 1,084

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
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot 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 cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2020, Yet Another Forum.NET
This page was generated in 0.069 seconds.

Authorization on the site

For an authorized user opens up new possibilities

Login

Password