Skip to content

A better example for compile-time options validation source generation would be nice. #40760

@mrudat

Description

@mrudat

Type of issue

Other (describe below)

Description

The example emits warnings if you enable IsAotCompatible; given that part of the reason for wanting to allow compile-time source generation is to work towards enabling AOT compilation, it would be helpful if the example shows the Right Way to configure things to that end.

Page URL

https://learn.microsoft.com/en-us/dotnet/core/extensions/options-validation-generator

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/extensions/options-validation-generator.md

Document Version Independent Id

0775474e-7773-d061-ed21-0a360c8466b1

Article author

@tarekgh

Metadata

  • ID: 533f4fc6-bb7c-874d-6639-ea215af95ed3
  • Service: dotnet-fundamentals

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions