简体   繁体   English

将第3方dll包装到wsp中

[英]packaging 3rd party dll into wsp

I have several 3rd party dll's for .net. 我有几个.NET的第三方dll。 I have the following requirements: - They must each be in their own sharepoint 2010 wsp - They must be deployed the bin, not the GAC 我有以下要求:-他们每个人都必须位于各自的sharepoint 2010 wsp中-必须将他们部署在bin中,而不是在GAC中

I'm having troubles accomplishing this. 我很难做到这一点。 What steps need to be taken to do this? 为此需要采取什么步骤?

I've tried creating a new sharepoint application, mapping bin, placing dll there then deploying. 我尝试创建一个新的sharepoint应用程序,映射容器,将dll放置在那里然后进行部署。

I've tried creating new sharepoint application, adding the dll as a reference, selecting web application instead of global assembly cache and deploying. 我尝试创建新的共享点应用程序,将dll作为参考,选择Web应用程序而不是全局程序集缓存并进行部署。

Neither method has worked when I tried to use another webpart that required those dll's. 当我尝试使用需要这些dll的另一个Webpart时,这两种方法均无效。

Edit - This page is an excellent example of what I need to do with 3rd party dll's but it doesn't have the details on how to do it. 编辑-此页面是我需要处理第三方dll的一个很好的示例,但没有有关如何执行此操作的详细信息。 http://ranaictiu-technicalblog.blogspot.sg/2012/06/sharepoint-package-your-external.html http://ranaictiu-technicalblog.blogspot.sg/2012/06/sharepoint-package-your-external.html

Appreciate any help. 感谢任何帮助。

Oké, getting your solution to deploy a DLL to the bin folder you need to change the deployment target from GAC to WebApplication. 好的,获取将DLL部署到bin文件夹的解决方案,您需要将部署目标从GAC更改为WebApplication。 When the project is deployed the project assembly will be deployed to the bin folder of the project the DLLL will be located at C:\\inetpub\\wwwroot\\wss\\VirtualDirectories[SiteName]\\bin 部署项目后,项目程序集将部署到项目的bin文件夹中,DLLL将位于C:\\ inetpub \\ wwwroot \\ wss \\ VirtualDirectories [SiteName] \\ bin

在此处输入图片说明

For the second question I don't know what you are trying to accomplish. 对于第二个问题,我不知道您要完成什么。 Maybe you can give some more context. 也许您可以提供更多背景信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM