Add Microsoft.SharePoint.dll from Nuget for SharePoint 2013/16/19 SSOM C#.

Amit Singh Rawat 731 Reputation points
2021-11-15T07:50:14.277+00:00

Hi,
In our old project reference to Microsoft.SharePoint.dll is added from server itself. It may cause issue with CI/CD pipeline. Kindly confirm if we can add there reference from nuget package manager.

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,629 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,991 questions
{count} votes

Accepted answer
  1. Echo Du_MSFT 17,216 Reputation points
    2021-11-16T03:10:33.963+00:00

    Hi @Amit Singh Rawat ,

    According to my test, we can add there reference from Nuget package Manager.

    It is worth noting that you need to ensure that the resource pack used is compatible with the .NET Framework version of your project.

    149632-6.jpg

    Thanks,
    Echo Du

    ==================================

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.