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'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 at 13:49
    
you said you restored the VM from previous day? how you restored it, from snapshot? –  Waqas Sarwar MCSE Jun 20 at 14:32
    
Check if the project targets x64 platform. Sometimes this setting can change without obvious reason. –  ExpectedException Jun 20 at 15:13

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.