Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Microsoft.Practices.SharePoint.Common and ServiceLocation for SharePoint 2013

$
0
0

I have a logging program that uses Microsoft.Practices.SharePoint.Common and Microsoft.Practices.ServiceLocation references for SharePoint 2010. We are upgrading to SharePoint 2013. I'm attempting to recompile the VS 2010 versions of our custom SharePoint apps in VS 2013 to be compatible with the SharePoint 2013 server we're moving to.

I opened the VS 2010 project in VS 2013 and did the upgrade.  I removed the references in my project to Microsoft.Practices.ServiceLocation and Microsoft.Practices.SharePoint.Common.  I ran Nuget package console Install-Package CommonServiceLocation, which added the Microsoft.Practices.ServiceLocation reference back into the project (Version 1.0.0.0).

I copied the .dll for Microsoft.Practices.SharePoint.Common from my old project (it is Version 2 and I can't find a more recent version online) and added a reference to it. 

When I build the project in VS 2013, I'm getting multiple errors: Reference required to assembly 'Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' containing the type 'Microsoft.Practices.ServiceLocation.IServiceLocator'. Add one to your project.

I'm not quite sure what is wrong, because I HAVE a reference to Version 1.0.0.0 in the project already.  I removed the reference and re-added it but still have the error.

Thank you for any help!


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>