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'm not sure if this is a problem with VS2012 or with SP2013. We restored a reverted vm yesterday, and there were a ton of weird SP2013 problems we had to overcome. Then after we got a site collection up and running at the root of port 80, I opened Visual Studio. None of our projects build because they can't find the Microsoft.SharePoint.dll assembly.

I went into a project and removed the old/bad reference, and tried to re-add it. However Microsoft.SharePoint.dll does not show up when searching Framework assemblies. I did find it when browsing to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI. However even when I add the reference from there, the project still does not build. It cannot find SharePoint in the Microsoft namespace.

I ran a repair on VS2012 and installed the SP2013 tools for VS2012, but the issue remains.

share|improve this question
What is the framework version of your project? – Aanchal Jun 20 '14 at 13:49
you said you restored the VM from previous day? how you restored it, from snapshot? – Waqas Sarwar MCSE Jun 20 '14 at 14:32
Check if the project targets x64 platform. Sometimes this setting can change without obvious reason. – ExpectedException Jun 20 '14 at 15:13
Can you rerun the config wizard first?Secondly, if that doesn't work reinstall SP 2013 and run the config wizard. – SaMolPP Dec 9 '15 at 13:56

Your Answer


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

Browse other questions tagged or ask your own question.