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.

Consider using `PublishAot` for Mobile Platforms and Blazor WASM

See original GitHub issue

Android currently uses the property AotAssemblies. PublishAot seems to do the same thing. Maybe we should accept either for Android, to provide uniformity. Same with Blazor, which uses RunAOTCompilation.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:35 (34 by maintainers)

github_iconTop GitHub Comments

1reaction
MichalStrehovskycommented, Jun 16, 2023

It’s not just DynamicCodeSupport=false. PublishAot also enables single file analyzer, trimming analyzer, AOT analyzer, disables runtimeconfig.json generation, etc. We’ll have to update pretty much every use of this property within the SDK repo to not do the thing it’s doing if UseMonoRuntime=true.

https://github.com/dotnet/runtime/pull/74038#issuecomment-1217419038 https://github.com/dotnet/runtime/pull/74038#issuecomment-1217428786

1reaction
eerhardtcommented, Jun 15, 2023

Note that https://github.com/dotnet/sdk/pull/29785 took the assumption that PublishAot=true implies DynamicCodeSupport=false. This is true for coreclr’s “Native AOT” support, but it doesn’t hold true for Mono’s AOT support. You can “Publish AOT”, but still support “Dynamic Code”.

We will have to rectify this assumption when we start using the PublishAot MSBuild property for Mono scenarios like Android and Blazor WASM.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Host and deploy ASP.NET Core Blazor WebAssembly
Learn how to host and deploy Blazor WebAssembly using ASP.NET Core, Content Delivery Networks (CDN), file servers, and GitHub Pages.
Read more >
Dotnet ahead-of-time: PublishReadyToRun vs PublishAot ...
It's quite hard to understand the concept by just reading the documentation. What is the difference between the PublishReadyToRun vs PublishAot?
Read more >
Blazor Server or Blazor WASM with ASP.NET Core Hosted
One advantage of using Blazor WASM is that it can reduce the load on the server since most of the processing is done...
Read more >
Blazor Hybrid Web Apps with .NET MAUI
NET MAUI Blazor. MAUI is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. MAUI uses a single...
Read more >
Let's build an app with .NET MAUI and Blazor - YouTube
Showcasing migrating a Blazor WASM PWA to .NET MAUI and Blazor Hybrid.
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