Error on NORMA for VS2010 when adding new ORM Generator transform

I have been following the thread How to create value type group which is close to what I want to do. I followed the instructions there and added the following registry keys slightly changed for NORMA on VS2010.

Re: Error on NORMA for VS2010 when adding new ORM Generator transform

I'm not seeing this assert (which is benign and should be ignorable), but I am seeing some other issues changing format modifiers in VS2010. VS2010 fully deprecated the Microsoft.Build.Engine namespace, so the code had to be fully and non-trivially rewritten for the Microsoft.Build.Construction namespace. It seems that the new API is having a difficult time removing items, so I'm getting duplicate <ORMGenerator> tags in the project file with corresponding unpredictable behavior. For example, after opening the dialog and adding the 'AddAuditColumns' extension, I'm seeing the following in the project file:

It will take me some time to debug this (I won't have a window this week), but in the meantime you can hand repair the .csproj file as follows:

Select the project node in the Solution Explorer window

Open the context menu and choose 'Unload Project'. You will now see 'ProjectName (Unavailable)'

Open the context menu again and choose 'Edit Project'

Search for ConceptualDBtoDCL and clean up extra ORMGenerator items

Save and close the project file

Right click the project node in Solution Explorer

Choose 'Reload Project'

Select the corresponding .orm file in Solution Explorer

Right click and choose 'Run Custom Tool'

Sorry about the problem. I don't install format modifiers with the main program right now, and clearly didn't cover the edit scenario (add the primary/save changes/close, reopen/add modifier/save changes/close) when I was testing the VS2010 custom tool.

I've attached an installer for this sample extension as well (covers VS2005/08/10 and 64/32).

Re: Error on NORMA for VS2010 when adding new ORM Generator transform

I really appreciate your quick reply. I've implemented the changes you list and now all is working well now (and explained the mystery duplicate project components I was seeing in the VS2010 project tree).

Thanks very much, I shall now look at how to use custom properties to add detail to the generated SQL. I am very interested to understand how far I can use NORMA to generate a well designed combined relational/XML implementation in SQLServer. Tally Ho!