C
C#2y 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
Angius2y ago
Do you even need to reference the DLL?
Angius
Angius2y ago
Not on .NET 7
Aaron
Aaron2y ago
you shouldn't have to reference it in netfx either
lucas_
lucas_OP2y ago
You right, it compile without any further needs, my text editor is just not set correctly
Angius
Angius2y ago
That's why using a good and proper IDE matters lol
jcotton42
jcotton422y ago
@lucas_ what runtime are you even targeting anyhow?
lucas_
lucas_OP2y 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
jcotton422y 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
Accord2y 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.
Want results from more Discord servers?
Add your server