Vixen
02b45cc4

BuildVariantAttribute

annotation Core/Vixen.App.Hosting/BuildVariant.cs:51
csharp
public sealed class BuildVariantAttribute

Declares the variant an application was built as.

No guide page documents this yet — the page shows what the code says about itself.

As a annotation

Valid on
Assembly

Remarks

Applied to the entry assembly, normally by the SDK from the build configuration rather than by hand. It exists because the variant is a build-time fact that has to survive into a running process, and the alternatives are worse: #if cannot express five states across packages that ship once, and an environment variable can be wrong.

Fields and properties (1)

  • public BuildVariant Variant

    The variant this assembly was built as.

Methods (1)

  • public BuildVariantAttribute(BuildVariant variant)

    Declares the variant an application was built as.

Used by (1)

  • BuildVariantsVixen.App.Hosting