I have only 1 Visual Studio Project.
It contains 1 EventReceiver(for DocumentLibrary) and multiple-WebParts. I have defined the Scope=Site of Feature.xml file of Project.
I have created 1 custom function in EventReceiver, which calls on Every event is fire either Add/Update/Delete in my DocumentLibrary.
When I deploy it by rightclicking on the project, Everything is working fine but When I create any page or any item is added into my any CustomList then also the EventReceiver is fires. Although it is created on DocumentLibrary. Its not giving me any error, but I dnt want to call it again.
But when I Debug the Project by F5, then I am getting error in EventReceiver, because its called multiple times means on every event.
If I deploy the EventReceiver's Scope=Web, then might be it will solve the problem, but I need to deploy the WebParts also with Scope=Site.
So How to solve this problem by single deployment ?