Skip to content

[XSG] Passing parameters to the inflators #30877

@StephaneDelcroix

Description

@StephaneDelcroix

There are multiple ways right now to give extra instructions, per file, to the XAML inflator

  • XamlCompilationAttribute
  • XamlProcessingAttribute (bright new)
  • xaml-comp XML processing instruction

attributes have the advantage of being available at post-compile time for XamlC to process, and we use xaml-comp XML-PI for xaml files without code-behind

Initial thought was, for XSG, to deprecate XamlCompilaiton in favour of XamlProcessing. We think it would add flexibility feasibility of change, filtering and wildcards, if we were instead using properties on in .csproj files.

XamlC could be modified to only process the list of files with the right properties, AND MOSTLY not run at all if that list is empty

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-xamlXAML, CSS, Triggers, Behaviorss/triagedIssue has been reviewedxsgXaml sourceGen

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions