dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.39k stars 10k forks source link

Blazor WebAssembly error when running using `dotnet watch`: condition `<disabled>' not met #33319

Closed danroth27 closed 3 years ago

danroth27 commented 3 years ago

Repro steps:

Expected result:

Tennis player edit page loads fine.

Actual result:

dotnet.6.0.0-preview.4.21253.7.js:1 * Assertion at /__w/1/s/src/mono/mono/metadata/assembly.c:1373, condition `<disabled>' not met
543344 @ dotnet.6.0.0-preview.4.21253.7.js:1

Workaround:

Run the app using dotnet run instead of dotnet watch

danroth27 commented 3 years ago

This also repros for me with the latest .NET 6 Preview 5 candidate build.

@lewing @lambdageek @pranavkm

lambdageek commented 3 years ago

Duplicate of https://github.com/dotnet/aspnetcore/issues/33152, I think. @pranavkm do you know if your fix made it into Preview 5 builds yet?

pranavkm commented 3 years ago

I unfortunately hadn't considered porting it to p5 when I made the fix to the other issue. The change is in main and it's a bit late now to for a p5 fix. I'll verify the fix with the latest SDK and close as appropriate.

danroth27 commented 3 years ago

This still repros for me with .NET 6 Preview 6 (6.0.100-preview.6.21315.23)

https://github.com/danroth27/PictureFixer/tree/net6p6

danroth27 commented 3 years ago

Actually, I'm not 100% sure I updated to .NET 6 Preview 6 correctly. Closing until I can repro for sure.