Skip to content

Possible to detect AOT mode during runtime? #76739

@sengiv

Description

@sengiv

This can be helpful when doing A/B testing or when showing AOT version of the app only to desktop users.

For example, we are using Azure CDN to mask 2 versions of the same app,
mobile users get the normal Blazor & desktop users get the AOT version.
With the same domain name.

The obvious solution is to set a flag during the build process of the AOT version.
And this is the direction we are heading.

But is there another straightforward way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Codegen-AOT-monoquestionAnswer questions and provide assistance, not an issue with source code or documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions