English 中文(简体)
在wsp解决方案卸载/收回过程中阻止删除共享dll
原标题:Preventing removal of a shared dll during a wsp solution uninstallation/retraction

我正在研究一系列使用Telerik等第三方DLL的解决方案。我们在您的大多数解决方案中都使用dll。但是,当我卸载任何解决方案时,dll将从程序集中删除。这是一种非常不幸的行为。

我想即使把dll放在bin文件夹中也无济于事。因为我可以在同一个web应用程序中使用多个解决方案。在这种情况下,如果我在解决方案上删除,它也是从bin文件夹中删除dll。

解决这个丑陋问题的办法是什么?

最佳回答

这确实令人痛苦。您可以考虑在使用ilmerge时合并第三方DLL。其他方法可以在Muhimbi的免费SharePoint编码指南(第8章和第9章)

问题回答

一种选择是不在您的单个解决方案中包含第三方DLL。卸载解决方案时,将删除随解决方案一起安装的任何内容。您可以有一个安装通用DLL的框架解决方案。这样,只有当您删除框架解决方案时,这些常见DLL才会被删除。或者,如果你想对每个共享DLL进行更细粒度的控制,你可以为它们提供一个单独的解决方案安装程序。

另请参阅SharePoint.SE上的问题:当收回单个解决方案时,使用共享dll的多个解决方案可能会造成严重破坏





相关问题
SharePoint - Approaching Website Storage Limit Email

How can i go about changing the distribution list as well as the email text for the email that goes out to site collection admin when a site collection approaches it s size limit? Thanks for your ...

UI automated testing within SharePoint

I m looking for automated Functional Testing tools that can manipulate SharePoint sites, libraries, and documents thought the web interface. It needs to be extensible enough to handle any custom ...

Enable authorization on sitemap provider

I want to enable Authorization on the Site map provider. We have enabled anonymous access to the site and we want the Site map provider to be visible only to authorized users. I tried ...

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...

Sharepoint 2007 Data view Webpart custom parameters

I m sort of new to the custom parameters that can be setup on a DataView Webpart. There are 6 options: - None - Control - Cookie - Form - QueryString - Server Variable I think that None, Cookie and ...

热门标签