SciSharp / NumSharp

High Performance Computation for N-D Tensors in .NET, similar API to NumPy.
https://github.com/SciSharp
Apache License 2.0
1.37k stars 192 forks source link

The type or namespace name 'NumSharp' could not be found (are you missing a using directive or an assembly reference?) [Assembly-CSharp]csharp(CS0246) #424

Open rcffc opened 3 years ago

rcffc commented 3 years ago

I am using VSCode and have tried installing Numsharp using NuGet Gallery and Nuget Package Manager.

But still I am getting this error in my Unity project: The type or namespace name 'NumSharp' could not be found (are you missing a using directive or an assembly reference?) [Assembly-CSharp]csharp(CS0246)

Any cues?

rcffc commented 3 years ago

It is also included in Assembly-CSharp.csproj: <PackageReference Include="NumSharp" Version="0.20.5" />

ghost commented 3 years ago

Hello @rcffc,

1) Have you tried to restart VSCode?

2) If your project is using .NET Core, the CLI tool allows you to easily install NuGet packages from VSCode.

dotnet add package NumSharp

After the command completes, look at the project file (*.csproj) to make sure the package was installed.