index > Visual Studio Team System - Domain-Specific Language Tools > t4 in a custom/stand alone tool

t4 in a custom/stand alone tool


Hi,

I don't really know too much about the DSL tools but I was just wondering if the t4 template engine could be used and distributed with a custom/stand alone tool? eg. Can this actually be done, are there any dependencies that would restrict this, what are the license terms?

If not, does anyone know of any similar template engines (open source or commercial)?

Thanks,
Wade.
wade_

Sorry for the delayed reply. Vascation and finalizing the V1 release has taken its toll.

When V1 of DSL Tools (with the VS SDK V3 to be released in early September), you'll be able to redistribute the dsl tools runtime (redist), that requires VS Standard or above to be used.

You can then install your own tools that make use of that.

The text templating engine is architected so that you can create your own hosts and/or directive processors which allow you to host it in different ways, and which allow templates to accept different input sources, respectively. You can distribute those with your own tools. There is samples shipped with DSL Tools, illustrating how to build your own hosts and directive processors.

Hope that helps




Stuart
Stuart Kent MSFT

Wade,

In case you are interested, there is an implementation of a text templating host available at http://www.gotdotnet.com/Workspaces/Workspace.aspx?id=dae43a90-7893-493c-804a-e1f7537732c0.

This is more complete than the implementation in the DSL documentation, and is designed to be used outside Visual Studio (i.e. when you can't use the VS host implementation). You can programmatically control the behaviour of the host (e.g. by specifying where to look for include files, which standard imports and assembly references to include, how often to recycle the temporary app domain etc). The host also looks in the GAC to resolve assembly references.

It also includes an alternative command line tool that allows you to specify these settings in an XML file.

You don't have to join the workspace to get either the binaries or the source code and unit tests. The code is built against the June 06 VS SDK - I'll update it as necessary when v1 ships.

Duncan

DuncanP
Thanks for the info.
wade_
reply 4

You can use google to search for other answers

 

More Articles

What is the best way to present 3 value properties on shape?
new connectors
Error crearting DSL prokject
Is there documentation for the T4 engine somewhere?
Transaction.RollBack() Error: Oject reference not set an instance...
DSL and VS 2005 Release Candidate 1 ?
T4 Text Template Editor for VS2005
property graphical representation
Reference from one DSL metamodel to another
DSL & Automation
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

DSL Tools Team HIRING in Cambridge, UK
Migrating between languages
How to respond to and propagate changes
Problem installing latest DSL toolkit ...
Where do I place text for a captionId?
Setup & life cycle
Transform Model to DSL
Migrating to May CTP: MissingManifestRes…
connections restrictions between shapes …
Problem with List type value property
Problem Extending Notation with icons
How to generate Hashtable like collection?
Text template load a file
I have a new article from the NOV CTP ba…
Compartment Shape for Model

Hot Articles

Non string name domain properties
Can I make two DSL models interact ?
how can i use the DiagramView to develop…
Properties on Relationship
Validation / Rejecting a change from a C…
How to Prevent property from being displ…
Preventing model elements from being del…
Many models, one template.
November DSL Toolkit Release: where are …
Re: Have problem for the DSL walk-throug…
Using Pictures
How to clip shape text?
Reminder Web Chat this Tuesday
Stability of Modeling API
How do I change the color of a connector…

Recommend Articles

Is there any DSL Specifications?
Customising standard context menu items
DSL Tools / VS.NET RTM
Designer code templates - where are they?
How do I change the color of a connector…
Walkthrough-1 problem
Can I make two DSL models interact ?
Troubleshooting: replicating toolbox items
November 2005 CTP available
Error in "Domain-Specific Language …
Set Inherited Properties
Relationship from CompartmentItem and po…
Join the World's Largest User Group on S…
Are there any Community Projects using t…
Outline Pen Width