Yes, there are questions and answers out there, but this is for VS 2022
I develop mainly BLAZOR Server applications at work. Beginning a couple updates ago, I've been getting this dialog:
Microsoft Visual Studio has detected that an operation is blocking user input. This can be caused by an active modal dialog or a task that needs to block user interaction. Would you like to shut down anyway?
This usually occurs while debugging and stepping through code. My first indication is when I can no longer hit F10 to step to the next line of code. Then I will notice after stopping the app I'm debugging, I can no longer edit my code, until I restart VS2022.
THERE ARE NO CONSOLE WINDOWS OPEN ANYWHERE, NO DIALOGS, NOTHING.
The solution I see this occurring mostly has 5 projects: 1 Blazor Server app, 2 .net 6 class library projects, 2 .net 6 console app projects.
The problem most often appears when debugging one of the console app projects.
This solution makes use of the following NuGet packages:
ClosedXML version 0.95.4
DynamicExpresso.Core, 2.12.0
Microsoft.AspNetCore.Authentication.Negotiate, 6.0.1
Microsoft.AspNetCore.Components.Forms, 6.0.1
Microsoft.Data.SqlClient, 3.1.0
Microsoft.EntityFrameworkCore, 6.0.4
Microsoft.EntityFrameworkCore.Relational, 6.0.4
Microsoft.EntityFrameworkCore.SqlServer, 6.0.4
Microsoft.EntityFrameworkCore.Tools, 6.0.4
System.DirectoryServices.AccountManagement, 6.0.0
Following is from the VS Help-About dialog:
Microsoft Visual Studio Professional 2022
Version 17.2.2
VisualStudio.17.Release/17.2.2+32519.379
Microsoft .NET Framework
Version 4.8.04084
Installed Version: Professional
.NET Core Debugging with WSL 1.0
.NET Core Debugging with WSL
ASP.NET and Web Tools 2019 17.2.389.42256
ASP.NET and Web Tools 2019
Azure App Service Tools v3.0.0 17.2.389.42256
Azure App Service Tools v3.0.0
Azure Functions and Web Jobs Tools 17.2.389.42256
Azure Functions and Web Jobs Tools
C# Tools 4.2.0-4.22252.24+47cdc16a21bbb8a4aadfb666b011e2059e1be5d2
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
NuGet Package Manager 6.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
Razor (ASP.NET Core) 17.0.0.2218101+885a343b00bcab620a90c1550c37dafd730ce984
Provides languages services for ASP.NET Core Razor.
SQL Server Data Tools 17.0.62204.01010
Microsoft SQL Server Data Tools
TypeScript Tools 17.0.10418.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 4.2.0-4.22252.24+47cdc16a21bbb8a4aadfb666b011e2059e1be5d2
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 17.1.0-beta.22253.3+058e7a7e597a02c129f38742f250a4b212da9ee3
Microsoft Visual F# Tools
Visual Studio IntelliCode 2.2
AI-assisted development for Visual Studio.