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

I upgraded SP 2010 Solution created using VS 2010 to SP 2013 solution in VS 2012. The Solution has one SharePoint project which references another SharePoint project in the same solution. There are using statements in the project which refer to classes in the referred project. When I build individual projects or whole solution everything builds fine. However, when I try to deploy or package a project which references another SharePoint project, I get the namespace error:

The type or namespace name 'XXXXX' does not exist in the namespace 'XXXXXX' (are you missing an assembly reference?)

All assembly references, .Net Framework etc are properly updated to reflect SP 2013 changes. The issue is very similar to this issue:

SharePoint project builds but will not package

share|improve this question
    
It might be good idea to add problem to your question then give link to it :) and what error does it throw when you try to deploy it –  Muhammad Raja Jan 13 at 11:24
    
@MuhammadRaja, see the updated question. –  Nadeem Yousuf Jan 13 at 11:33
    
Check what is it deploying @package, seems like it's has reference to some dll, which isn't already in GAC, at least that's what happened in my case, just to be on safe side, add that dll as safe controls within your package and then see if it makes any difference –  Muhammad Raja Jan 13 at 11:38
    
@MuhammadRaja thanks, but that did not help. –  Nadeem Yousuf Jan 13 at 12:50

1 Answer 1

up vote 1 down vote accepted

I fixed the issue by removing the dll references which were added using "Project references" and then added the references by browsing to bin folder.

Source:

http://www.datazx.cn/Forums/en-US/fcf3215b-7e2c-4423-afaf-bff310b60216/action?threadDisplayName=problem-with-vs2012-and-sharepoint-2013-solution

share|improve this answer

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.