question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove Blazor Desktop workarounds for iOS/Android Content warnings

See original GitHub issue

The 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:

  1. 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.
  2. 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
javiercncommented, Feb 23, 2022

@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.

0reactions
Eiloncommented, Feb 23, 2022

@javiercn I think @pranavkm has discussed with the Android and iOS SDK folks and we have solutions in progress.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found