[Maui Blazor] Disable automatic package import when using the Razor SDK as it breaks Razor Class Libraries
Open
area-blazor
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 296
Description
https://github.com/dotnet/maui/issues/25999#issuecomment-3693107689
The workload changed to start bringing in the Webview.Maui package automatically which is designed for the final application and wreaks havoc when writing class libraries. Webview.Maui should be brought in explicitly by the app.
Contributor guide
Research direction
No file or test is named in the issue. Start by tracing the Razor SDK workload's automatic Webview.Maui package import, then verify that Razor Class Libraries no longer receive it implicitly while the final app can still bring it in explicitly. Use the linked discussion for the intended behavior and validation context.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100