[英]WinSCP NuGet package .NET Standard error
I am trying to build a .NET Standard 2.0 Class Library that uses the WinSCP NuGet
package. 我试图建立一个使用WinSCP NuGet
包的.NET Standard 2.0类库 。 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?) 找不到类型或名称空间名称“ WinSCP”(您是否缺少using指令或程序集引用?)
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? 通过手动添加WinSCPnet.dll
作为参考,可以解决该错误,但是这会导致在Bamboo中构建库时出现问题,因此我想知道是否还有其他方法可以解决此问题?
.NET Standard is supported since WinSCP 5.15 only. 仅从WinSCP 5.15开始支持.NET Standard 。
It's not supported by the earlier versions. 早期版本不支持。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.