-
Notifications
You must be signed in to change notification settings - Fork 21
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
Compiler Errors After Upgrade to v4.2.3.5 #61
Comments
Not sure where you got the ConfigModel.tt file from, but it wasn't the one added to your project when you added the model. The .efmodel file has some differences that look suspicious as well. Is this a copy of an old model and .tt that was edited? The model should work fine, but the T4 won't. |
First thanks a lot for your quick reply, Michael, much appreciated! I remember that a while ago you asked to do minor manual changes in this file, like removing these two lines:
And changing But apart from that it should still be the same file created many years back. What would you suggest to do? |
Yes. Create a new .tt file and change its name. Do a slight edit to change the name of the model file to the one you're using. Example: That should get you back on track. Normally you wouldn't need to do this, but the change you made was only meant to be a temporary change to get you over the problem you were experiencing earlier. |
Thanks, Michael, done that now and reset the However, the compilation errors in the generated code persist. It is this line which was Now it is What's the best way to get the models (I have two in production with similar issues) working again? |
It sounds like there's a mismatch between the entity framework core version you're compiling with and the one you've told the model you're using. Can you check that? |
Closing due to lack of activity. |
Hello Michael,
thanks for your continuous efforts on this project!
As I was curious to try your fixes for my reported issues #54 and #55, I've just updated from v4.2.1.3 to v4.2.3.5, but looks like this is making things much worse for me unfortunately...
Even following very simple test model generates broken code for me now:
ConfigModel-Test.zip
This was working without problems in v4.2.1.3.
The text was updated successfully, but these errors were encountered: