How I can upload file to SharePoint 2019  using  .NET Core 3.1?

Imran Jalali 101 Reputation points
2021-10-26T13:22:42.84+00:00

We are using on premises SharePoint 2019 

Can anyone provide me help How I can upload file to SharePoint 2019  using  .NET Core 3.1?

Any sample code?

I had used the old .NET framework to upload files but that method doesn't work any more...

Thanks.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,660 questions
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,570 questions
0 comments No comments
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-10-27T01:25:11.887+00:00

    Hi @Imran Jalali ,
    No, you can't.

    Sharepoint 2019 CSOM doesn't supoort .NET Core. Only .Net framwork is supported. You could refer to this article: https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/using-csom-for-dotnet-standard#key-differences-between-the-net-framework-version-and-the-net-standard-version

    144002-image.png


    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 additional answers

Sort by: Most helpful