In my Visual Studio 2010 SharePoint Project
I have a single SPItemEventReceiver that is contained in its own Elements.xml
I have 2 site collection features that are mutually exclusive they are never both activated on the same site collection.
I want to use the SPItemEventReceiver in them both.
I found that I can add the element.xml for my event receiver into both site collection features.
This seems to work but studio reports a warning.
The Project Item "MyItemEventReceiver" is included in the following Features: SiteFeature1, SiteFeature2
I cannot find any documentation on this warning or the possible side effects of this configuration.
What is the recommended way to share an SPItemEventReceiver between multiple features?