Automated deployment of mixed SSIS / DLL solution

后端 未结 4 1458
南旧
南旧 2021-02-15 12:49

We currently have a solution developed using SSIS / C#. The SSIS package (amongst other things) has a script task that uses logic developed in the class libraries. This function

4条回答
  •  -上瘾入骨i
    2021-02-15 13:15

    Well, after much research I never really came up with a satisfactory solution for this. In the end the closest I could get was a solution where I loaded my references dynamically:

        Dim rsAssembly As Assembly = Assembly.LoadFile("path from config file")
        Dim rsType As Type = rsAssembly.GetType("class name from config file")
        Dim obj As Object = Activator.CreateInstance(rsType)
    

    This allowed me to create the object I required (although worth noting that any other dependant references also need to by dynamically load or part of the GAC, although at least without the dependancy on the version number).

    Posted here for future seekers, but if anyone comes up with something better I would still be very curious to know how you resolved it - post here and I will credit you with the answer :)

提交回复
热议问题