Hi, I'm Japanese.
so I not better the English.
Please forgive me.
I coding to C# scripts.
I want loading for CSV file.
whereat using Microsoft.VisualBasic.FileIO Library.
However, the error message comes out in the console.
"Assets/TestEE.cs(3,29): error CS0234: The type or namespace name `FileIO' does not exist in the namespace`Microsoft.VisualBasic'. Are you missing an assembly reference?"
"Assets/TestEE.cs(3,1): error CS0246: The type or namespace name `VisualBasic.FileIO' could not be found. Are you missing a using directive or an assembly reference?"
There is nothing from Microsoft.VisualBasic in Unity. It wouldn't make sense, since Unity doesn't use Visual Basic. Just use the classes from System.IO.
Microsoft.VisualBasic is just an assembly and you can use it in C# based projects just fine (I do this all the time). You’ll just need to add a reference to it.
People tend to get confused because the assembly has VB in the name, but it’s not VB specific. As the OP seems to be doing, I commonly use it for the TextFieldParser which is great for reading CSV data.
If you only need it in the editor, having an assembly definition file in the folder set to “Editor” and the 2 dlls in the same folder is enough to make it work since you don’t need to build.