Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OverrideMode="Extend" doesn't work #325

Open
aodl opened this issue May 28, 2019 · 1 comment
Open

OverrideMode="Extend" doesn't work #325

aodl opened this issue May 28, 2019 · 1 comment

Comments

@aodl
Copy link

aodl commented May 28, 2019

I've tried to use OverrideMode="Extend" as indicated here, but it just doesn't work as documented. If I create my own item type, under a ProjectSchemaDefinitions xaml file, and then create a rule xaml file for it, and then attempt to extend said rule xaml file with another xaml file (using `OverrideMode="Extend") it seems to completely overwrite the previous rule (replace). In other words all the properties set up in the previous rule get replaced by the property(s) defined in the second rule file.

Also, if I try to provide a rule extension for a pre-existing item type, like ProjectReference or Reference, the rule just seems to be completely ignored (regardless of whether I import at the Directory.Build.Props or Directory.Build.Targets stage).

I would really like to be able to extend the metadata attached to project references for manipulation inside Visual Studio.

Tried this in both VS 2017 and 2019, with same result

@anonymous601
Copy link

Hi, were you able to make it work? I am trying to extend CL rule by creating an xml where my project is and importing it at Directory.Build.Targets. But, my rule doesn't show up in Property Pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants