SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a visual studio project where I am trying to GAC the dll that is created. My problem is that when I click on the project and look at the "Assembly Deployment Target" property it is disabled (greyed out) and has no value selected. From what I understand this is what happens if you have a sandboxed solution, but this particular project is not a sandboxed solution.

Why would this happen? Is there a way that I can specify that I want it deployed to the GAC?

share|improve this question
Are you developing on the machine where SP2010 is installed? – Amit Kumawat Nov 19 '11 at 2:24
up vote 8 down vote accepted

"Assembly Deployment Target" property is disabled at a sandboxed solution, you're correct. But it's also disabled when developing a farm solution when the property "Include Assembly in Package" in the same properties window is set to False.

Can you verify this setting?

share|improve this answer
Can't believe I missed that, thanks! – Abe Miessler Nov 21 '11 at 16:13
Hello, when developing a farm solution what is the purpose of setting the property "Include Assembly in Package" to True? Where does the wsp get deployed to content db or filesystem? – variable Feb 6 '14 at 6:36

Your Answer


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.