4

I try to create a provider hosted app (MVC) with VS2015.

I use the standard template-approach like described there: http://chakkaradeep.com/index.php/building-apps-for-sharepoint-with-mvc/ (Or many other places like msdn)

After that project is created, I receive an error that SharePointContextProvider and SharePointContextFilter can not be found. ("missing assembly reference")

I run VS as administrator and have already installed the "Windows Identity Foundation SDK", "SharePoint Client Components SDK" and the "Azure SDK"

Is there a nuget package or something like that I have to add to my project?

6

You need go add OfficeDev PnP Nuget package in your project. Depending on if you're developing for online or on-premise.

2
  • Thx. I cannot believe I did Google that issue for HOURS and did not find that solution. – Ole Albers Jan 22 '16 at 10:24
  • hi, any idea how can we add the package – Imen Turki Jan 3 '19 at 11:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.