index > Visual Studio Team System - Domain-Specific Language Tools > 2 problems with V1 release

2 problems with V1 release


1. Showing context menus gives an OLE error

2. The version of TxtTemplating is 8.1 not 8.2 (unlike what the migration guide says) and I get a warning about inconsistent versions.

Rest of product looks good

foleyp
1. I solved this by referencing 8.2 version of all assemblies. TextTemplating assembly is not (why ?) directly pickable from .NET tab. But you can find it manually and select in Browse tab.In my case it is in directory

C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.TextTemplating\8.2.0.0__b03f5f7f11d50a3a\
Jan Stuchl?k

Hi foleyp, Jan

1) If you'vemigrated a designer then (10 may be that the migration instructions have a bug in that they tell you to use a copy of constants.tt from a new designer but forgot to mention to copy the commandset id across from your orginal generatedcmd.tt

If this is a brand new designer, not a migration, then please let us know.

2) This is a bug and we're workign out our solution to it right now.




Gareth Jones - Developer - DSL Tools & Software Factories Platform [MSFT]
GarethJ - MSFT

FYI if you have encountered the first problem that Gareth refers to above, here are some notes on how to fix the migrated code.

The guid for the command set is specified in two separate files in the project, and these values need to match. The values are in:
* DslPackage\GeneratedCode\Constants.tt, and
* DslPackage\GeneratedCode\GeneratedCmd.tt

In Constants.tt, the guid is specified in the line that starts "public const string <#= dslName #>CommandSetId".

In GeneratedCmd.tt, the guid is specified in the line that starts "#define guidCmdSet".


Edit the .tt files so that these guid values match, then transform the templates to regenerate the corresponding ".cs" files. You can use either the "old" or "new" guid, or you can generate a new one (e.g. using "Tools", "Create Guid" in Visual Studio).

Note the guids are represented differently in the files, although they have the same value (one is in the GUID struct format, the other is a string).

You will also need to update the ProvideMenuResource value as described in Gareth's post.

Duncan


DuncanP
Thanks - changing the GUIDs fixed the problem
foleyp
See the resolution to point (2) at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=771928&SiteID=1


Gareth Jones - Developer - DSL Tools & Software Factories Platform [MSFT]
GarethJ - MSFT
reply 6

You can use google to search for other answers

 

More Articles

Show more than one Property in a Compartment
How to control order of transformation steps?
Template Fix: Text templating fails with designers deployed using...
DSL Tools Sept CTP and WinFX Sept CTP?
TextDecorators in SwimLaneShapes
UML Sequence diagram in DSL?
Decorator for Compartments
problem when following "Walkthrough: Creating and Running Te...
Making a reference from a connector class
Zoom feature
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Reminder Web Chat this Tuesday
Announcing: SharpLudus, a software facto…
UML Sequence diagram in DSL?
DoubleClick in Compartment item
How adequate-rich or suffitient-complete…
Diagram Size
embedding relationship
Defining custom multiplicities
How to Block Self-Relationship
Category feedback
CompartmentShapeMap
Package Load Failure
Designer code templates - where are they?
how can i get a reference to a modelelem…
Using a Template to iterate on all model…

Hot Articles

How to set custom properties at runtime?
T4 Example of passing parameters to Text…
Custom action on dropping items onto the…
November 2005 CTP available
Customising standard context menu items
How to make a Domain Relationship visibl…
VS SDK March 2006 CTP
Designer code templates - where are they?
How do you Add F1 Help and ToolTips to a…
timescale for DSL additions
Prevent generated DSL code from producin…
Using DSL tools outside VS
DSL Tools Licensing
Troubleshooting mysterious crashes
Catch On Properties Change Event

Recommend Articles

Reading and writing models in June relea…
Changing image displayed by image shape …
Adding/Removing elements in domain model
bidirectional connectors
Any Practical Limits on Model Size?
Error with DSL Project Setup
Walkthrough distinguish visually between…
"Static" Swimlanes
How to find the parent of a relationship…
Open a new Document
Custom Storage setting...
Including template content inside method…
Changing elements from properties
Opening an existing DSL in a fresh insta…
Background Picture