dotnet / project-system

The .NET Project System for Visual Studio
MIT License
967 stars 386 forks source link

Move to MEF-based or Automation registration for rules #4104

Open davidwengier opened 5 years ago

davidwengier commented 5 years ago

Currently all of our rule XAML files are shipped on disk, but they're also included as resources in the DLLs, which is superfluous. We need to see if we can move to MEF Export or Automation in order to expose the rules. See here for information: https://github.com/Microsoft/VSProjectSystem/blob/master/doc/extensibility/adding_xaml_rules.md#via-mef-export

If this is possible then we can stop shipping XAML files to users.

davidwengier commented 5 years ago

Spike of this is here: https://github.com/davidwengier/project-system/tree/XamlRuleRegisterWithMEF

This needs a fair bit of work in CPS to complete.

drewnoakes commented 4 years ago

6261 adds OverrideMode="Extend" to item rules *.FSharp.xaml, which isn't supported when registering rules via MEF. They would need to be flattened out as part of fixing this issue.