msawczyn / EFDesigner2022

Entity Framework visual design surface and code-first code generation for EF6, Core and beyond
MIT License
119 stars 21 forks source link

Unable to open added diagrams. #7

Closed msawczyn closed 2 years ago

msawczyn commented 2 years ago

From Marketplace:

We used the visual editor in VS2019 for our project. Now in VS2022 (after applying the change to our .tt file as documented on the site) and installing the latest extension I get the following error when trying to open any of the not default diagrams: "Error HRESULT E_FAIL has been returned from a call to a COM component" Any suggestions are welcome

PS: Not sure if important but when right clicking on the root node of the entity model explorer I do not get the option to add a new diagram

PS: in VS2019 we were using 2.0.5.6 version of the extension

After some further investigation, I tried a new project from scratch, and then I cannot create a seconds diagram. The menu contains almost no actions besides "Copy" and "Properties" when I right click on the root node in the entity model explorer. So probably there is nothing wrong with our migrated project, but there is probably an issue with diagrams (except the default one works)

msawczyn commented 2 years ago

I've verified that this is indeed a bug but, like one other issue in this project, we're going to have to wait on Microsoft to fix it. There's a Nuget package that's required for the modeling sdk (Microsoft.VisualStudio.Setup.Configuration.Interop) that needs a package version >= 3.0.4496. The latest version available is 3.0.4492. The errors being thrown indicate that this problem is stemming from Microsoft.VisualStudio.Modeling.Sdk.Shell.dll, which requires that assembly. There's an update available, but we can't use it since the dependency isn't available.

The missing package has been reported.