Remove Blazor Desktop workarounds for iOS/Android Content warnings
See original GitHub issueThe MAUI Blazor Desktop targets contain various workarounds to avoid various warnings related to MSBuild Content
items. The workaround to avoid those warning is to use BeforeTargets/AfterTargets to temporarily remove certain Content
items, and then later restore them.
Ideally we would have a proper way of avoiding these warnings. Maybe one of these:
- Do something to avoid getting into this problem in the first place? This might not be possible due to each SDK having its own, incompatible view of what
Content
means. - Have a generic MAUI way of doing the workaround so it isn’t unique to Blazor. Perhaps if Blazor Desktop could tag the items as being
MauiWebContent
or similar, the MAUI targets could “do the needful” (which might be identical to the current workarounds, but in a common location) (credit: @mattleibow )
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Fix Razor Scoped CSS so it doesn't cause errors in iOS ...
In PR #2938 a temporary workaround was added to ensure that Razor Scoped CSS is not "seen" by the iOS/MacCatalyst bundling targets because ......
Read more >ASP.NET Core Blazor Progressive Web Application (PWA)
Learn how to build a Blazor Progressive Web Application (PWA) that use modern browser features to behave like a desktop app.
Read more >Debug ASP.NET Core Blazor WebAssembly
This article describes how to debug Blazor WebAssembly with browser developer tools and an integrated development environment (IDE).
Read more >Hot Reload is rubbish : r/Blazor
I had to make an MVC project at work last month, and Edit and Continue fails ALL THE TIME. The "you need to...
Read more >How do I disable C# compiler warnings in the HTML area ...
I'm getting a null reference warning from a C# line in my Blazor Page. I don't know how to disable it. I've tried...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Eilon Yes, @pranavkm and myself synced offline on what to do here, and we believe we can do this in a way that avoids us having to update this in the future for new Razor features.
We’ll piggyback on Convert…ToMauiAssets and update the content items there based on the list of static web assets as well as the Razor files.
@javiercn I think @pranavkm has discussed with the Android and iOS SDK folks and we have solutions in progress.