如何在 2012 年从 SSIS 引用 dll? [英] How do I reference a dll from SSIS in 2012?

查看:27
本文介绍了如何在 2012 年从 SSIS 引用 dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用脚本组件向我的 SSIS 包 (2012) 添加 dll 引用.IntelliSense 正在为我工​​作,我在编码时没有看到错误.但是,我收到以下错误:

I am trying to add a dll reference to my SSIS package (2012) with a script Component. The IntelliSense is working for me and I don't see error when coding. However, I get the following error:

无法加载文件或程序集XYZ,版本=1.0.0.0,文化=中性,PublicKeyToken=XYZ"或其依赖项之一.系统找不到指定的文件.

Could not load file or assembly 'XYZ, Version=1.0.0.0, Culture=neutral, PublicKeyToken=XYZ' or one of its dependencies. The system cannot find the file specified.

请帮忙.

推荐答案

如果这是一个自定义 DLL,那么您需要将它安装到 GAC(全局程序集缓存)中,以便它在 SSDT 之外运行.

If this is a custom DLL, then you will need to install it into the GAC (global assembly cache) for it to run outside of SSDT.

程序集不能安装到 GAC 中,除非它是强签名.一旦签名,从 Visual Studio 命令提示符,注册看起来像 gacutil -if MyRadAssembly.dll

An assembly cannot be installed into the GAC unless it's strongly signed. Once it's signed, from a Visual Studio command prompt, registration would look like gacutil -if MyRadAssembly.dll

这篇关于如何在 2012 年从 SSIS 引用 dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆