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

EF Core PowerTools is causing slowdown in .NET Framework 4.7.2 solution #1889

Closed
Montago opened this issue Jul 20, 2023 · 9 comments
Closed
Labels
question Further information is requested

Comments

@Montago
Copy link

Montago commented Jul 20, 2023

I have a .NET Framework 4.7.2 solution which is slowed down by this extension.

The solution is an Outlook Addin + MVC5 website with Swagger API + Microsoft API Helppage.

The slowdown doesnt happen for other .NET Framework 4.7.2 projects and doesn't happen with .NET 6-7 projects neither.

There are 2 EDMX files in the web project, both created with the native EDMX tool in Visual Studio.

I'm running Visual Studio 2022 version 17.6.5 (newest stable release)

@ErikEJ
Copy link
Owner

ErikEJ commented Jul 20, 2023

Can your share the project files (privately?) or a public repro - I do some inspection of them to determine which menu items to show, and they must be special in some way.

How si the solution "slowed down" - the project context menu or what?

@Montago
Copy link
Author

Montago commented Jul 20, 2023

It's Visual Studio itself which is slowed down.
I dont use EF Core PowerTools for this project.

I'm not sure if i can share the project - it's quite finicky to get up and running and contain sensitive code..

@ErikEJ
Copy link
Owner

ErikEJ commented Jul 20, 2023

I "just" need the .csproj files (basically the header of them) - to see if I can reproduce. Otherwise it is very hard for me to provide support for you.

@Montago
Copy link
Author

Montago commented Jul 20, 2023

It seems that the slowdown only occurs when right clicking on the Project to open the context menu.

@Montago
Copy link
Author

Montago commented Jul 20, 2023

I "just" need the .csproj files (basically the header of them) - to see if I can reproduce. Otherwise it is very hard for me to provide support for you.

I'll send you the csproj file

@Montago
Copy link
Author

Montago commented Jul 20, 2023

ADTOutlookCRMWebAddInWeb.zip

here you go

@ErikEJ
Copy link
Owner

ErikEJ commented Jul 20, 2023

I am unable to reproduce - how do you determine that it is Power Tools causing the slowdown? Maybe a screen share session would help?

@Montago
Copy link
Author

Montago commented Jul 20, 2023

#1 - Visual studio complained about EF Core powertools as the main cause of slowdown (while computer was on battery)

#2 - Disabling the extension solved the slowdown.

Find me on MS Teams (mk@autoit.dk) and we can do a screen share

@Montago Montago changed the title EF Core PowerTools is causing extreme slowdown in .NET Framework 4.7.2 solution EF Core PowerTools is causing slowdown in .NET Framework 4.7.2 solution Jul 20, 2023
@Montago
Copy link
Author

Montago commented Jul 20, 2023

After some investigation and help from you erik,

I found the cause of the problem is that THIS distinct project has 600 MB / 90.000 node_modules installed.

After deleting them, the context menu has no longer any problems.

So i guess its a mix of Visual Studio 2022 and the EF PowerTools Extension acting funny (and maybe ESET antivirus)

@Montago Montago closed this as completed Jul 20, 2023
@ErikEJ ErikEJ closed this as not planned Won't fix, can't repro, duplicate, stale Jul 20, 2023
@ErikEJ ErikEJ added the question Further information is requested label Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants