Hello @Joel Almeida,
Welcome to Microsoft Q&A forum.
Probably, this issue is caused by updating VS 2022 to the latest version. Please kindly check these two threads: Create or recreate a Model does not work any more for winform .net framework solutions, Cannot import anymore tables into edmx. “Running transformation: System.NullReferenceException: Object reference not set to an instance of an object.”.
If you get the same issue, please try the workarounds which are shared in above links and if possible, try to downgrade to a previous version of VS 2022 temporarily, for example, version 17.5.4/17.5.5.
If the issue you get is different from the issues mentioned in above threads, please try following methods:
- Rename/remove ComponentModelCache folders in
C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_XXXXXXXX
. - Reset VS settings by running
devenv /ResetSettings
inDeveloper Command Prompt for Visual Studio 2022
. - Remove the hidden .vs folder in your solution folder and rebuild your project.
Best Regards,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.