[英].Net Core unable to detect Microsoft.VisualBasic.FileIO
I am facing below issue in .Net Core.我在 .Net Core 中面临以下问题。 I have added Microsoft.VisualBasic nuget package to .Net Core class library but still getting issue.
我已将Microsoft.VisualBasic nuget 包添加到 .Net Core 类库,但仍有问题。
The type or namespace name 'FileIO' does not exist in the namespace 'Microsoft.VisualBasic' (are you missing an assembly reference?)
命名空间“Microsoft.VisualBasic”中不存在类型或命名空间名称“FileIO”(您是否缺少程序集引用?)
I didn't get above issue in .Net framework.我在 .Net 框架中没有遇到上述问题。
How to resolve above issue如何解决上述问题
I think there is no way to use Microsoft.VisualBasic.FileIO on .Net Core currently.我认为目前无法在 .Net Core 上使用 Microsoft.VisualBasic.FileIO。
Maybe you can use some library like this, it would achieve the same results: https://github.com/bimonsubio1984/CommonCore/tree/master/Ported.VisualBasic也许你可以使用这样的库,它会达到相同的结果: https : //github.com/bimonsubio1984/CommonCore/tree/master/Ported.VisualBasic
with the FileIO functionality there is the TextFieldParser .与 FileIO 功能有TextFieldParser 。 This is an RFC compliant CSV parser that can also handle fixed-width files.
这是一个符合 RFC 标准的 CSV 解析器,也可以处理固定宽度的文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.