Differences
This shows you the differences between the selected revisions of the page.
2015-06-24 | 2016-06-02 | ||
it's not a static constructor handler but assemblyresolve handler subscribed in static contructor + removing the example, the use is too minor, keeping a link only (martin) | update link (martin) | ||
Line 21: | Line 21: | ||
When deploying your SSIS package, WinSCP .NET assembly should be [[library_install#gac|installed to GAC]] to be accessible. | When deploying your SSIS package, WinSCP .NET assembly should be [[library_install#gac|installed to GAC]] to be accessible. | ||
- | Alternatively, you can subscribe ''[[https://msdn.microsoft.com/en-us/library/system.appdomain.assemblyresolve.aspx|AppDomain.AssemblyResolve]]'' event in a static constructor handler of the script task class to locate the assembly in an another location. For details, see article [[http://blogs.msdn.com/b/dbrowne/archive/2014/06/25/how-to-load-an-assembly-in-a-ssis-script-task-that-isn-t-in-the-gac.aspx|How to load an Assembly in a SSIS script task that isn't in the GAC]]. | + | Alternatively, you can subscribe ''[[https://msdn.microsoft.com/en-us/library/system.appdomain.assemblyresolve.aspx|AppDomain.AssemblyResolve]]'' event in a static constructor handler of the script task class to locate the assembly in an another location. For details, see article [[https://blogs.msdn.microsoft.com/dbrowne/2014/06/25/how-to-load-an-assembly-in-a-ssis-script-task-that-isnt-in-the-gac/|How to load an Assembly in a SSIS script task that isn't in the GAC]]. |