Creating a reference to a custom assembly from an SSIS Script Task - vb

前端 未结 2 1149
暖寄归人
暖寄归人 2021-01-19 03:42

I am looking for a way to create an \"Imports Newtonsoft.Json.Linq\" in my SSIS script task, but this is apparently not as simple as a \"manage NuGet Packages\" in SSIS. So

2条回答
  •  旧巷少年郎
    2021-01-19 04:36

    You have to add Newtonsoft.Json dll file to the following directories

    (1) .Net Framework dll directory

     C:\Windows\Microsoft.NET\Framework\v[.net installed version]\ 
    

    example

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\
    

    (2) SQL server data tools dll runtime directory

    C:\Program Files (x86)\Microsoft SQL Server\[SQL Server version]\DTS\Binn
    

    example

    C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn
    

    After that, in the Script Task, go to project explorer, you and then add this dll as a reference, it will appear in the references listed.

提交回复
热议问题