-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Debuggin Blazor Webassembly project of Visual Studio 2022 does not work correctly with a Visual Basic Library .NET 6 or .NET Standard Project containing Async method. #77481
Comments
Tagging subscribers to this area: @thaystg Issue DetailsIs there an existing issue for this?
Describe the bugDebugging function of Blazor Webassembly project (like watching variable values/evaluating in Immediate window) of Visual Studio 2022 does not work correctly with referencing a Visual Basic Library .NET 6 or .NET Standard Project containing Async method. All debuging functions except breaking point in async methods in Visual Basic Library .NET 6 or .NET Standard Project, which is referred to C# Blazor WebAssembly project, do not work with the following message in Locals window;
However, debugging functions in other non-async methods in Visual Basic Library .NET 6 or .NET Standard Project work correctly. I updated Visual Studio 2022 up to the latest version (17.3.6) and updated all nuget packages. I am attaching Locals Window screen shots for calling non-async method and asycn method. The following is for none-async method; The following is for async method; The issue occurs for Visual Basic .NET Standard Library Project as well as Visual Basic .NET 6 library project. Expected BehaviorAll debugging functions - watching local variables and evaluating Immediate Window - must work with async method in referred Visual Basic Library Projects. Steps To Reproduce
Exceptions (if any)
.NET Version6.0.402 Anything else?Test Envrionment:
|
Is there any solution or workaround for current .NET 6 and Visual Studio 2022? Do I have nothing but to convert existing VB.NET Library codes to C#? |
I think this is fixed, or I'm missing something to reproduce. |
I updated to v17.4.3 and could see local variables in Local Window at VB.NET So, it is not fixed completely. Using library project is only way to use VB.NET at Blazor WASM though it is partial solution. |
Can you provide us a sample project where I can reproduce it? |
Is there an existing issue for this?
Describe the bug
Debugging function of Blazor Webassembly project (like watching variable values/evaluating in Immediate window) of Visual Studio 2022 does not work correctly with referencing a Visual Basic Library .NET 6 or .NET Standard Project containing Async method.
All debuging functions except breaking point in async methods in Visual Basic Library .NET 6 or .NET Standard Project, which is referred to C# Blazor WebAssembly project, do not work with the following message in Locals window;
However, debugging functions in other non-async methods in Visual Basic Library .NET 6 or .NET Standard Project work correctly.
I updated Visual Studio 2022 up to the latest version (17.3.6) and updated all nuget packages.
I also deleted obj/bin folders and did clean->rebuilding, but it did not disappeared.
I am attaching Locals Window screen shots for calling non-async method and asycn method.
The following is for none-async method;
The following is for async method;
The issue occurs for Visual Basic .NET Standard Library Project as well as Visual Basic .NET 6 library project.
It makes hard to develop Blazor WebAssembly apps with existing Visual Basic .NET Standard/.NET6 Library projects which utilize async keyword.
Expected Behavior
All debugging functions - watching local variables and evaluating Immediate Window - must work with async method in referred Visual Basic Library Projects.
Steps To Reproduce
Open Visual Studio 2022
Create a Blazor WebAssembly Project (C# .NET 6) without ASP.NET Core Hosting
Add a Visual Basic Library Project (.NET 6 or .NET Standard 2.0/2.1)
Add project reference of Visual Basic Library Project to Blazor WebAssembly Project
Add a Class to Visual Basic Library Project as the followings;
Add a break point at the line of 'var result = testService.Test("1234");'
Start Blazor WebAssembly Project and debug into testService.Test and await testService.TestAsync.
You can see "data" variable value in Auto/Locals window in TestService.Test method.
You cannot see "data" variable value in Auto/Locals window in TestService.TestAsync method.
Exceptions (if any)
.NET Version
6.0.402
Anything else?
Test Envrionment:
Windows 10
Visual Studio 2022
.NET 6 Blazor WebAssembly Project Template
The text was updated successfully, but these errors were encountered: