Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How can we avoid the Globally Deployment of a WSP using Visual Studio 2010?

share|improve this question
add comment

3 Answers

up vote 1 down vote accepted

The best method I've found to avoid Visual Studio 2010 deploying your solution to all Web Applications and auto-activating all features is to not use Visual Studio 2010 for deployment (unfortunately). I keep a PowerShell window handy for deployment and feature activation purposes.

However, you can also create your own "Deployment Configuration" by right clicking on your project in the solution explorer, clicking the "SharePoint" tab, and creating a new "Active Deployment Configuration" based on the "No Activation" configuration that uses a post-deployment command line to deploy the solution to your chosen web application and activate any specific features you'd like.

Clarification: Microsoft has documented how to create and/or edit your Active Deployment Configuration on this MSDN page: How to: Edit a SharePoint Deployment Configuration. It also contains information about where to find these settings.

share|improve this answer
    
could you pleaase explain because I can't find the settings as you mentioned –  Geek Jun 15 '12 at 23:27
add comment

I'm not really sure what you are asking here. When I run deploy on my dev box which is where visual studio is installed, it only installs to the SharePoint install on my dev box. What type of setup do you have?

Or are you referring to how to create a sandbox solution vs a farm solution?

Please clarify your question. Thanks!

share|improve this answer
    
I have visual studo 2010 installed on my Dev box. I am talking about farm solutions –  Geek Jun 14 '12 at 17:39
    
So you are asking how to create a sandbox solution instead of a farm solution? –  Steve Lineberry Jun 14 '12 at 18:46
    
no, my question is how to deploy WSP solution created by a Visual Studio 2010 to a specific Web Application instead of Globally Deploying it –  Geek Jun 15 '12 at 23:26
    
I'm not sure you can, but you can make web application scoped features and then only activate the features in your solution for the web application that needs it. –  Steve Lineberry Jun 16 '12 at 2:46
1  
Why don't you just tell me what you are trying to accomplish? What is in your solution? –  Steve Lineberry Jun 16 '12 at 10:48
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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