简体   繁体   中英

WinSCP NuGet package .NET Standard error

I am trying to build a .NET Standard 2.0 Class Library that uses the WinSCP NuGet package. However, when I install the package even though it adds it as a dependency I get the error:

The type or namespace name 'WinSCP' could not be found (are you missing a using directive or an assembly reference?)

when:

using WinSCP

By manually adding the WinSCPnet.dll as a reference this fixes the error, but this is causing issues with building the library in Bamboo so I was wondering if there is another way I could solve this issue?

.NET Standard is supported since WinSCP 5.15 only.

It's not supported by the earlier versions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM