Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Failed to resolve include text for file EFCoreDesigner.ttinclude #45

Closed
mciprijanovic opened this issue Sep 7, 2022 · 3 comments
Labels
bug Something isn't working released Issue is resolved in a current release
Milestone

Comments

@mciprijanovic
Copy link

Hi,

I noticed a bug. Here is the description. Whenever I try to save a change to a model, even just to move a table on the layout, and I try to save, I get errors displayed in the image below.

error

I have Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.3.3
I have EF Visual editor 4.2.1.3.

This does not happen with older versions of EF Visual Editor. I tried with 4.2.0. all is OK, friend of mine has 4.2.1.0. all OK also.
Can you please investigate what is happening?

One more question is the following: on the official page of the product migration from 2019 to 2022 is described like this:

Migrating from VS2019 You'll have to change a line in your model's .tt file to accommodate how Visual Studio 2022 handles library imports in text templates.
Change line 5, which reads
#><#@ assembly name="EnvDTE"
to be
#><#@ assembly name="Microsoft.VisualStudio.Interop"

However, I didn't change this line in any model and all works OK. I mean, worked OK until the tool update. Should I anyway change the models or not?

@msawczyn
Copy link
Owner

For a temporary fix, look in the .tt file in your project. Lines 8-10 likely read

#><#@ include file="EFDesigner.ttinclude" once="true"
#><#@ include file="EF6Designer.ttinclude" once="true"
#><#@ include file="EFCoreDesigner.ttinclude" once="true"

Remove those to get rid of that error. This will be fixed in the next release.

@msawczyn
Copy link
Owner

However, I didn't change this line in any model and all works OK.

It's ok to leave it be. Something in your environment or project is allowing that to work, and that's ok. It won't be true for the majority of the people ... you're one of the lucky ones.

@msawczyn msawczyn added the bug Something isn't working label Sep 12, 2022
@msawczyn msawczyn added this to the 4.2.2 milestone Sep 12, 2022
@msawczyn msawczyn modified the milestones: 4.2.2, 4.2.3 Oct 9, 2022
@msawczyn
Copy link
Owner

msawczyn commented Oct 9, 2022

Re-added those two empty .ttinclude files for legacy model compatability.

@msawczyn msawczyn added the pending release Issue is resolved in the current codebase, will be published with the next release label Oct 9, 2022
@msawczyn msawczyn added released Issue is resolved in a current release and removed pending release Issue is resolved in the current codebase, will be published with the next release labels Mar 30, 2023
@msawczyn msawczyn modified the milestones: 4.2.2, 4.2.3 Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Issue is resolved in a current release
Projects
None yet
Development

No branches or pull requests

2 participants