English 中文(简体)
如何创建引用其他库的SSIS自定义任务
原标题:How to create an SSIS custom task that references another library

如何从SSIS任务库成功引用库?例如:MyCompany.SsisTasks.AwesomeTask引用了MyCompany.SsisTasks.Common?当我尝试这样做时,会弹出以下内容:

Could not load file or assembly AwesomeTask, PublicKeyToken=xxxxxxxxxxxxxxxx or one of its dependencies. The system cannot find the file specified.

我已经创建了一个新的SSIS任务,完成了所有的基本步骤(从Microsoft.SqlServer.Dts.Runtime.task等获得)。这样做很有魅力,一切都很好。该项目已经扩展,我现在正在引用另一个具有此任务的库。当我现在将任务添加到SSIS时,我会收到前面提到的错误。因此,我似乎错误地引用了“它的一个依赖项”。我很好奇是否有人有这方面的经验。

最佳回答

解决方案是:确保所有程序集都在GAC中,并确保在引用其他程序集(例如UITypeString)时包括Class、Assembly、Version、Culture和PublicKeyToken。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签