-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
When I use some generic attribute in WASM Blazor project, and I tried debug that - breakpoint doesn't work, and I receive a message in console:
"fail: DevToolsProxy[0]
Failed to load https://localhost:7186/_framework/BlazorApp3.Client.dll (Specified cast is not valid.)"
In the text below, I used a generic attribute in program.cs, but that doesn't matter. You can create and try to use them wherever you want.
Expected Behavior
Debug is running as usual, and I have worked breakpoints.
Steps To Reproduce
First of all, you can check repo with this bug: https://github.com/ocSADus/GenericAttributeBug
Steps:
- Open VS 2022
- Click "Create a new project"
- Select "Blazor WebAssembly App"
- At additional Information page select .Net 7.0, ASP.Net Core Hosted, Do not use top-level statements
- Open Program.cs for client side
- Create Generic Attribute and use them (look at my screenshot for example)
- Set breakpoint
- Try to debug app
Exceptions (if any)
fail: DevToolsProxy[0]
Failed to load https://localhost:7186/_framework/BlazorApp3.Client.dll (Specified cast is not valid.)
.NET Version
7.0.302
Anything else?
Target framework: .NET 7.0
Language version: 11.0
IDE: VS 2022 17.6.2
--info:
.NET SDK:
Version: 7.0.302
Commit: 990cf98a27
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19044
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.302\
Host:
Version: 7.0.5
Architecture: x64
Commit: 8042d61

