Upgrade MDF file event not fired on VS2012 when both VS2012 and VS2013 installed on the same box [AffectedLastRTM]


On a machine with both VS2012 and VS2013 the designer will throw an Assert in VS2012 saying "sqlDatabaseFileUpgradeService service is null" and the even to handle MDF file upgrade will not be registered. The root cause is that the EntityDesignPackage project is not compiled against a versioned reference to the Microsoft.VisualStudio.DataDesign.Interfaces.dll and at runtime a type from Microsoft.VisualStudio.DataDesign.Interfaces.dll, is used rather than the one from Microsoft.VisualStudio.DataDesign.Interfaces.dll, This is a regression from the original tooling that shipped with VS2012.
The fix is to add the version to the reference in the csproj file.
Closed Oct 28, 2013 at 10:20 PM by jemartti


moozzyk wrote Sep 12, 2013 at 12:24 AM

Fixed with changeset #c470e00 in the designer repo

DoubleIdentity - Fixing a csproj file to build against the correct version of Microsoft.VisualStudio.DataDesign.Interfaces assembly