I created a Script Task in my SSIS package and addded the WinSCP nuget package to the script. However when i build the task i get the following error,
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\WinSCP.5.19.6\build\WinSCP.targets.
this nuget package used to work in my ssis script tasks no problem.
i updated winscp no luck, i tried uninstalling and reinstalling the nuget package with no luck. I added another nuget to make sure it wasnt an issue with nuget and it worked. So it is limited to this package. I created a quick c# console app to debug and was able to install and build with the winscp package no problem. So it seems that the issue is isolated only to winscp and only when in a script task.
so how do i resolve this issue so that i can use winscp in my script task? I am hoping to avoid having to use the execute process task. I would like to do it in c#.