Add reference to script task in ssis
The way I understand it, SSIS script tasks can't use a reference unless it's in the GAC.
With this assu开发者_如何学编程mption:
- I've tried downloading the .net 2.0 sdk x64 (developing on 64 bit machine) that should have gacutil, still not there.
- I've tried installing the dll using a console app using the
System.EnterpriseServices.Internal.Publish.GacInstall
method. If it has installed it, I have no idea where becaues it's not in the available references in VS.
I can't copy it to assemblies because 'adminstrator rights' fails.
Any suggestions?
Nothing is straight forward.
to use 'gacutil' in the .net 2.0 sdk (located here) you have to open the sdk command prompt AND 'as administrator'
alt text http://myofficevideos.com/pics/screen.png
alt text http://myofficevideos.com/pics/capture.png
Based on this link I Found GacUtils in the following folder: "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools"
I could then open command prompt (in adminisrator mode) and navigate to the folder containing gacutils:
cd C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
and then run my command to install using gacutils:
gacutil -I "C:\myDll.dll"
精彩评论