Update 1 to the DSL Tools May 2005 Migration Guide

Here's a little titbit that got past us when we were putting together the migraton guide from the March to May CTPs of the DSL Tools.
I'll keep posting these as our customers come across them and we work out the workaround.

If we get enough then we'll look into posting a revised copy of the guide.

Inbetween steps 3 and 4

Open the project properties of the DomainModel project in Visual Studio.

Modify the "Default namespace" from
CompanyName.ProjectName.LanguageName.DomainModel
to
CompanyName.ProjectName.LanguageName.ObjectModel.

If you're doing this after the fact and not between steps 3 and 4, then you'll need to hit the "Transform All Templates" button to regenerate and then rebuild your solution.

A word of explanation is due (especially as other instructions have you modifying from ObjectModel to DomainModel).

In new DSL Tools projects, we've renamed ObjectModel to DomainModel.  Although the directory in your migrated solution is called DomainModel, we've decided not to modify the namespace of all the code generated therein and all of the places it is referenced from the Designer project. This is currently quite a fiddly operation and we didn't have time to match the excellent rename refactoring sported by the rest of Visual Studio.  However, we missed this step, which means that the strongly-typed wrapper classes  for your resource files will generate in the DomainModel namespace which doesn't match the rest of your project.  Setting the default namespace and regenerating should ensure that all code generated in the DomainModel project actually has a consistent ObjectModel namespace.

Published 01 June 05 01:06 by GarethJ
Filed under: ,

Comments

# Rob Caron's Blog said on July 4, 2005 8:26 PM:

On Language Workbenches:

Martin Fowler’s original post x and additional readings x
Brad Appleton’s...
# Rob Caron's Blog said on July 5, 2005 2:48 AM:

On Language Workbenches:

Martin Fowler’s original post ⊕ and additional readings ⊕...
# Rob Caron's Blog said on July 6, 2005 1:26 PM:

On Language Workbenches:

Martin Fowler’s original post ⊕ and additional readings ⊕
Brad Appleton’s...
New Comments to this post are disabled

Search

This Blog

Disclaimer
The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion.
All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Tags

Archives

Architects who Model

DSL Tools Team

Links

Syndication

Page view tracker