Reputation: 11
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
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
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