Hi Laurie,
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:
<None Include="ORMModel1.DCIL.xml">
<AutoGen>True</AutoGen>
<DependentUpon>ORMModel1.orm</DependentUpon>
<ORMGenerator>ConceptualDBtoDCL</ORMGenerator>
<ORMGenerator>ConceptualDBtoDCL AddAuditColumns</ORMGenerator>
<ORMGenerator>ConceptualDBtoDCL AddAuditColumns</ORMGenerator>
<ORMGenerator>ConceptualDBtoDCL AddAuditColumns</ORMGenerator>
</None>
instead of the desired setting, with a single ORMGenerator tag with the primary generator listed first and the format modifiers trailing:
<None Include="ORMModel1.DCIL.xml">
<AutoGen>True</AutoGen>
<DependentUpon>ORMModel1.orm</DependentUpon>
<ORMGenerator>ConceptualDBtoDCL AddAuditColumns</ORMGenerator>
</None>
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).
-Matt