Sharepoint 将SP 2016 wsp部署到SP 2019,但导致添加SP解决方案出错

Sharepoint 将SP 2016 wsp部署到SP 2019,但导致添加SP解决方案出错,sharepoint,sharepoint-2016,sharepoint-2019,Sharepoint,Sharepoint 2016,Sharepoint 2019,我已尝试将SP 2016 wsp部署到SP 2019,但第1行的添加SP解决方案输入字符串的格式不正确 我已在安装了SP 2019的环境中,于2017年与2017年分别打开了SP 2016 wsp。 当VS 2017要求时,还将解决方案升级为SP 2019 它正确地重建wsp,但不部署 有谁能告诉我一些关于这个的想法吗 我得到的错误是: 严重性代码描述项目文件行抑制状态 错误CS0433“Microsoft.SharePoint,版本=16.0.0.0,区域性=中性,PublicKeyToken

我已尝试将SP 2016 wsp部署到SP 2019,但第1行的添加SP解决方案输入字符串的格式不正确

我已在安装了SP 2019的环境中,于2017年与2017年分别打开了SP 2016 wsp。 当VS 2017要求时,还将解决方案升级为SP 2019

它正确地重建wsp,但不部署

有谁能告诉我一些关于这个的想法吗

我得到的错误是:

严重性代码描述项目文件行抑制状态 错误CS0433“Microsoft.SharePoint,版本=16.0.0.0,区域性=中性,PublicKeyToken=71e9bce111e9429c”和“Microsoft.SharePoint,版本=15.0.0.0,区域性=中性”中都存在类型“SPList”,PublicKeyToken=71e9bce111e9429c'bambol.FullTextSearch C:\bambol\LT200\SPX.HW11.ListSearch\dev\bambol.AdvancesSearchSoldual\bambol.FullTextSearch\bambol.SimpleSearchEngine.cs 48处于活动状态

在您的项目中有很多类似的检查引用:Microsoft.SharePoint

2) 如果有引用且未损坏,请打开库属性检查版本

2.1)如果引用了较新版本,请在app config中添加带有bindingRedirect的程序集绑定,例如:

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="Microsoft.SharePoint" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
    <bindingRedirect oldVersion="15.0.0.0" newVersion="16.0.0.0" />
  </dependentAssembly>
</assemblyBinding>
并阅读日志。

1)检查项目中的引用:Microsoft.SharePoint

2) 如果有引用且未损坏,请打开库属性检查版本

2.1)如果引用了较新版本,请在app config中添加带有bindingRedirect的程序集绑定,例如:

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="Microsoft.SharePoint" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
    <bindingRedirect oldVersion="15.0.0.0" newVersion="16.0.0.0" />
  </dependentAssembly>
</assemblyBinding>
并读取日志