1

I have created a visual web part using visual studio of type "Farm solution", then I add the wsp file using the following command:-

PS C:\Users\Administrator> Add-SPSolution c:\RedirectManagedMetaData.wsp

after that this solution appeared under the "CA>>System Setting>>Manage Farm Solutions", as follow:-

enter image description here

now from the central administration I only have the option to deploy it to web application/s level, while in my case I only need this wsp solution to be inside single site collection and not to all site collections within my web application. So is there a way to deploy a farm solution to specific site collection/s?

1

No, there is no way to deploy a solution to a particular site collection. A solution is deployed either Globally to all web applications or a single web application. It is the feature inside the solution which can be deployed to a farm/webapplication/site collection/web.

  • but if i chose to deploy to web application , then then this feature will be activated automatically to all site collections.. atleast is there a way to not forcing the feature to get activated insdie the CS features ? – john Gu Dec 3 '14 at 13:16
  • Change the Scope of the feature to Site. That way it won't be automatically activated. – Nadeem Yousuf Dec 3 '14 at 13:18
  • 1
    Features are not activated automatically. – Slaven Semper Dec 3 '14 at 13:19
1

Usually you deploy your farm solution to web application, but you activate solution's feature(s) only on desired site collection.

-1

Set Your Feature Scope to "Site" instead of "Farm".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.