简体   繁体   English

.Net Core 无法检测到 Microsoft.VisualBasic.FileIO

[英].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.

相关问题 Microsoft.VisualBasic.FileIO 参考 - Microsoft.VisualBasic.FileIO reference microsoft.visualbasic.fileio 不存在 - microsoft.visualbasic.fileio does not exist “microsoft.visualbasic.fileio 不存在”尝试使用 TextFieldParser - “microsoft.visualbasic.fileio does not exist” trying to use TextFieldParser 有没有办法使用 Microsoft.VisualBasic.FileIO 的 TextFieldParser 将 .csv 文件中的所有空字段映射为 NULL - Is there a way to map all the empty fields inside .csv file as NULL using Microsoft.VisualBasic.FileIO's TextFieldParser 有没有办法使用 Microsoft.VisualBasic.FileIO 修剪 .csv 文件中的所有字段 - Is there a way to trim all the fields inside .csv file using using Microsoft.VisualBasic.FileIO “Microsoft.VisualBasic.FileIO 不存在”。 如何在我的项目中包含这个库? - “Microsoft.VisualBasic.FileIO does not exist”. How to include this library in my project? 如何编写与 Microsoft.VisualBasic.FileIO.TextFieldParser 兼容的 csv 格式? - How to write csv format compatible with Microsoft.VisualBasic.FileIO.TextFieldParser? 命名空间“Microsoft.VisualBasic”中不存在类型或命名空间名称“FileIO” - The type or namespace name 'FileIO' does not exist in the namespace 'Microsoft.VisualBasic' C#中的Microsoft.VisualBasic.FileIO.FileSystem等价 - Microsoft.VisualBasic.FileIO.FileSystem equivalence in C# Microsoft.VisualBasic.FileIO.TextFieldParser不能使用引号 - Microsoft.VisualBasic.FileIO.TextFieldParser doesn't work with quotation marks
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM