How do I add a .DLL to my SSIS script task?

Hi,

I have some code written in .NET sitting in a .DLL. I would like to call this code from a script task block of code... but how do I add the .DLL to my project If I go to References->Add References, there is no "Browse" button like there is in "normal" VS.NET. How can I add this .DLL So far I have had to copy and paste the code from the .DLL into my project, but this is ugly!!

Thanks for any help.


Answer this question

How do I add a .DLL to my SSIS script task?

  • smattessich

  • Jayasankar-eSystems

    Thanks for your reply. However, I am now having problems trying to just add a .DLL to the GAC! I am following thse steps

    1) goto .NET command line and type "sn -k SomeStrongName.snk" (it tells me the key was created)

    2) add the this to the top of my code after imports, "<Assembly: AssemblyKeyFile("SomeStrongName.snk")> "

    When I try to compile the .dll, it gives this error: "Error creating assembly manifest: Error reading key file 'SomeStrongName.snk' -- The system cannot find the file specified. "

    Do you have any clue why this is happening Is there somehwere i should move this .snk file to Or do I have to change a path setting or something

    Any help is greatly appreciated!!!



  • NelsonCE

    I'd say the path is incorrect to the key. From memory something like ..\..\Keyfilename.snk worked best in VS 2003, but in VS 2005 just set the key in the Project Properties, Signing page, it saves all the hassle of specifying the AssembkykeyFile attribute by hand, it does it for you under the covers.

  • How do I add a .DLL to my SSIS script task?