Pablo Galiano : VS2008 templates and $if$ directives

Subscriptions

<September 2010>
SuMoTuWeThFrSa
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

News

Subscribe to Pablo Galiano by Email

Post Categories

VS2008 templates and $if$ directives

Today I found that the VS 2008 new wizard template engine supports $if$ directives. This was supported in the old .vsz format but now it is also available in vstemplates.

If we take a look at the existing windows form item template provided with VS 2008 we can see:

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;

$if$ ($targetframeworkversion$ == 3.5)using System.Linq;

$endif

$using System.Text;
using System.Windows.Forms;

namespace $rootnamespace$
{
    public partial class $safeitemrootname$: Form
    {
        public $safeitemrootname$()
        {
            InitializeComponent();
        }
    }
}

 

Really cool, isn't it?

Pablo

posted on Thursday, March 13, 2008 5:36 AM by pga

# re: VS2008 templates and $if$ directives @ Thursday, April 10, 2008 8:26 AM

Wouldn't it be even nicer if these templates supported T4 syntax natively?

What do folks think? Is this something we shoudl have on our TODO list? With what sort of priority?

Gareth Jones

# re: VS2008 templates and $if$ directives @ Saturday, November 15, 2008 1:03 AM

mGnap2 <a href="http://oarqimpzxflb.com/">oarqimpzxflb</a>, [url=http://tgriyvddqfey.com/]tgriyvddqfey[/url], [link=http://iflnrnzdoisd.com/]iflnrnzdoisd[/link], http://vzauhgqnvvav.com/

ciezlypwe