C
C#16mo ago
lucas_

✅ Adding reference with CLI

How can i reference System.Numerics with the CLI ? Tried dotnet add reference C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Numerics.dll but it says that System.Numerics is an invalid project
9 Replies
Angius
Angius16mo ago
Do you even need to reference the DLL?
Angius
Angius16mo ago
Not on .NET 7
Aaron
Aaron16mo ago
you shouldn't have to reference it in netfx either
lucas_
lucas_16mo ago
You right, it compile without any further needs, my text editor is just not set correctly
Angius
Angius16mo ago
That's why using a good and proper IDE matters lol
jcotton42
jcotton4216mo ago
@lucas_ what runtime are you even targeting anyhow?
lucas_
lucas_16mo ago
im not even targetting anything specific downloaded the first sdk i found and ran dotnet new Im just trying to setup neovim for c# but its more painful that it should be
jcotton42
jcotton4216mo ago
then you'll be targeting .net 7 (unless you downloaded an old SDK for some reason) in which case you couldn't use anything in C:\Windows\Microsoft.NET\Framework anyhow that's all old Framework stuff if you need something that doesn't ship in the base runtime, you'll get it from nuget
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.