Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

error CS0246: The type or namespace name 'CsvHelper' could not be found

$
0
0

I'm new to Unity and C#, hopefully my question is clear enough.
It's a Unity test project to show the issue only.
On Mac: I created a new class and opened it with Visual Studio, added the CsvHelper package using: Tools => Manage NuGet Packages => Add Package.
The package was successfully added to packages as shown here Solution

Once that was done, I was able to add the code line: using CsvHelper; with Visual Studio intellisense recognizing it.

using System.Collections;using System.Collections.Generic;using UnityEngine;using CsvHelper;public class Level {}

Moving back to Unity, it showed me the error:
error CS0246: The type or namespace name 'CsvHelper' could not be found (are you missing a using directive or an assembly reference?)
Switching back to Visual Studio, it started to show an error.

On Windows: I have done the same, had the same error, except I also tried adding reference through: Project => Add Reference. Once that is done, the error disappears from Visual studio, still exists in Unity.
closing Visual Studio will recreate the error there, and the reference that I added disappears from the Solution explorer under References.

I have no clue of what I'm missing, tried almost every suggestion on here that I was able to understand. excuse my lack of understanding of the terminology and the proper practices.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>