title: Creating a solution that deploys to selected WebApplications but copies the assembly to GAC
body: <p>Using VisualStudio 2010 to create a SharePoint2010 solution, I want to deploy my solution to selected WebApplications (not to all). I can do this, by switching Assembly Deployment Target (Project Property) to WebApplication. But then, the assembly will not be deployed to the GAC.</p>
  
  <p>Is there a setting which allows deployment to specific WebApplications, but deploys the Assembly to the GAC?</p>
  
  <p>EDIT: Maybe the question is hard to understand, so here an example:</p>
  
  <p>On a SharePoint Farm every customer hat one WebApplication. A custom feature, ordered by a specific customer, should only be usable on the WebApp of the customer. The feature should not appear in the SiteCollection features or WebSite features of other WebApps.</p>
  
  <p>But the feature scope has to be Site or Web to be activated only in parts of the customers Portal.</p>