我正在尝试使用Visual Studio中的C#来写入SharePoint列表。因此,我尝试安装名为SharePoint.Client.Runtime的Nuget包
我收到下面的错误消息。
Severity Code Description Project File Line Suppression State
Error NU1202 Package SharePoint.Client.Runtime 15.0.0 is not compatible with netcoreapp3.1 (.NETCoreApp,Version=v3.1). Package SharePoint.Client.Runtime 15.0.0 supports: microsoftsharepointclientruntime (Microsoft.SharePoint.Client.Runtime,Version=v0.0) 任何帮助都是非常感谢的
发布于 2021-02-28 16:27:00
SharePoint.Client.Runtime 15.0.0包太旧了,它不能在以.NET Core 3.1为目标的项目中工作。
您应该为.NET Core应用程序使用nuget包Microsoft.SharePointOnline.CSOM。
可以在here中找到如何使用Microsoft.SharePointOnline.CSOM的示例。
https://stackoverflow.com/questions/66403548
复制相似问题