Not able to build the solution

Anand Keloth asked on May 10, 2023 16:18

I am getting the below error when trying to build the solution in visual studio can someone help.

Severity Code Description Project File Line Suppression State Error Reference.svcmap: Could not load file or assembly 'Microsoft.SharePoint.Client.Runtime.Portable, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. App_WebReferences/AllPoints/

Recent Answers


kentico guy answered on May 11, 2023 18:33

Right click on the solution and go to "manage nuget packages" and make sure that Microsoft.SharePointOnline.CSOM version 16.1.6621.1200 is installed as a nuget. If it is then you need to right click on the solution and do "restore nuget packages." If it's not you need to select that version of the nuget and install it in the solution. Then you should see it in the bin folder after you run build. If it's not in bin you need to find where the nuget package is installed and grab the dll manually to put in the bin folder OR add a before build task to copy the dll from your lib folder into the bin upon build.

https://stackoverflow.com/questions/49361618/microsoft-sharepoint-client-runtime-portable-is-missing

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.