Error while adding WinSCPnet version 5.13.8 via Nuget

Advertisement

sstar
Joined:
Posts:
4

Error while adding WinSCPnet version 5.13.8 via Nuget

I am trying to add a reference to WinSCP to a script task in SSIS but get the following error

Severity Code Description Project File Line Suppression State
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.13.8\build\WinSCP.targets. ST_b8780b1249ac42d9848e46e6e454a074 C:\Users\sstar\AppData\Local\Temp\Vsta\SSIS_ST140\VstaRY1vIvBgbEKEyTZZjAR9Tg\VstaZdGo5Rf99kmVPTStZxuwsg\ST_b8780b1249ac42d9848e46e6e454a074.vbproj 108

Can anyone please help me fix this?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Error while adding WinSCPnet version 5.13.8 via Nuget

When exactly do you get the error?
Did you follow the instructions in the link?

Reply with quote

sstar
Joined:
Posts:
4

Re: Error while adding WinSCPnet version 5.13.8 via Nuget

I am trying to but they are not as clear as you seem to think. I have installed the WinSCP .NET assembly via the NuGet Package Manager but when I try to install it to the GAC I get an error message "Failure adding assembly to the cache: The system cannot find the file specified". Here is the line I wrote into the command window in order to try to install it to the GAC. c:\program files (x86)\windows\v10.0a\bin\netfx 4.7.3 tools/gacutil.exe /I winspcnet.dll. Do you have any advice how I might resolve this?

Reply with quote

martin
Site Admin
martin avatar

Re: Error while adding WinSCPnet version 5.13.8 via Nuget

Are you running that command in the folder, where the winspcnet.dll file is stored?

Reply with quote

sstar

I think that was the problem. The GAC Util was failing until I figured out that I had to supply the full path. I seem to be ok now except that I cannot get my code to compile in visual studio 10 (we run SQL Server 2008).

Reply with quote

Advertisement

martin
Site Admin
martin avatar

sstar wrote:

except that I cannot get my code to compile in visual studio 10 (we run SQL Server 2008).
If you want our help on this, we need way more details.

Reply with quote

Advertisement

You can post new topics in this forum