Reference a .net 3.5 assembly in a Script Task in SSIS 2005?

佐手、 提交于 2019-12-06 09:06:23

wow, i know this answer is coming late. but i think it does not create any problems because SSIS will load the assembly at runtime from GAC, as long as you have .net framework 2.0 AND 3.5 on the machine, the code will work at runtime.

The file in framework 2.0 is only used for development ide and to precompile the script task/component. during runtime, all that matters is if the version exists in GAC.

If you did not precompile your tasks, then you will need the dll in two places, the framework 2.0 folder AND GAC, because SSIS will compile the script task first (so it needs the reference in framework 2.0 folder) and then run the task (reference will be loaded from GAC).

RyanB

To be safe, you could try changing the compiling framework.

In C#

Project Explorer > Properties > Target Framework dropdown

How do I find the .NET framework version used in an SSIS 2008 R2 package?

In VB

Menu > Project > Project properties,
click on the Compile tab, then click on the Advanced Compile Options and change the Target Framework dropdown

http://www.demiliani.com/blog/archive/2007/08/24/6430.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!