madskristensen / Tweakster

A Visual Studio extension
Apache License 2.0
240 stars 23 forks source link

Adding an entity to an entity framework edmx and saving leads to an exception #34

Closed ite-klass closed 3 years ago

ite-klass commented 3 years ago
System.Threading.ThreadAbortException: Thread was being aborted.
   at EnvDTE.Project.Save(String FileName)
   at Tweakster.AutoSave.OnProjectItemChange(ProjectItem item) in C:\projects\tweakster\src\Tweaks\General\AutoSave.cs:line 63

VS Pro 16.7.2 Tweaks 1.0.83

Saving the edmx triggers a T4 text template transformation.

Adding columns to existing entities was no problem (update model from database). It may have to do with the new cs file being added to the project(?).

I have not tested with variance to see if this is only in specific cases or adding any entity.

ite-klass commented 3 years ago

The issue still exists.

Did that code change merely remove logging information without fixing the actual issue?

It still works fine with the extension disabled.

image