user2114257
user2114257

Reputation: 11

.Net Core unable to detect Microsoft.VisualBasic.FileIO

I am facing below issue in .Net Core. I have added Microsoft.VisualBasic nuget package to .Net Core class library but still getting issue.

The type or namespace name 'FileIO' does not exist in the namespace 'Microsoft.VisualBasic' (are you missing an assembly reference?)

I didn't get above issue in .Net framework.

How to resolve above issue

Upvotes: 0

Views: 1331

Answers (2)

SomethingCool
SomethingCool

Reputation: 303

I think there is no way to use Microsoft.VisualBasic.FileIO on .Net Core currently.

Maybe you can use some library like this, it would achieve the same results: https://github.com/bimonsubio1984/CommonCore/tree/master/Ported.VisualBasic

Upvotes: 1

0x53olution
0x53olution

Reputation: 401

with the FileIO functionality there is the TextFieldParser. This is an RFC compliant CSV parser that can also handle fixed-width files.

Upvotes: 0

Related Questions