Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell 此解决方案包含一个或多个全局程序集缓存的目标程序集_Powershell_Sharepoint_Gac - Fatal编程技术网

Powershell 此解决方案包含一个或多个全局程序集缓存的目标程序集

Powershell 此解决方案包含一个或多个全局程序集缓存的目标程序集,powershell,sharepoint,gac,Powershell,Sharepoint,Gac,我有一个通过SharePoint powershell部署的SharePoint网站。wsp是通过visual studio 2013构建的 解决方案中的所有我的项目都不是已签名的程序集(项目->右键单击->属性->签名->签名程序集复选框未选中)。我通过发布解决方案并使用SharePoint powershell将其部署到SharePoint来获取解决方案的wsp 当我尝试执行此操作时,会出现以下错误: 当我在谷歌上搜索解决方案时。他们中的许多人建议勾选“为组件签名”复选框。我不想这样做,因

我有一个通过SharePoint powershell部署的SharePoint网站。wsp是通过visual studio 2013构建的

解决方案中的所有我的项目都不是已签名的程序集(项目->右键单击->属性->签名->签名程序集复选框未选中)。我通过发布解决方案并使用SharePoint powershell将其部署到SharePoint来获取解决方案的wsp

当我尝试执行此操作时,会出现以下错误:


当我在谷歌上搜索解决方案时。他们中的许多人建议勾选“为组件签名”复选框。我不想这样做,因为通过Nugget安装的某些软件包还面临一些其他问题。

在解决方案的库上签名

转到项目的属性,然后单击签名选项卡,然后选中为库签名选项,创建一个新的强名称文件(带或不带密码),然后重建和部署