C
C#2y ago
LukeJ

Adding a library [Answered]

Hello. I very rarely work in the console, but now I've started doing so I've found myself needing to add a library. I can't for the life of me figure out how to do so, though. I keep seeing to add the dll in the references, but I don't see any reference file in my solution. As far as I can tell I just don't have one in this project. What am I missing here?
7 Replies
Thinker
Thinker2y ago
Is the library available on Nuget?
LukeJ
LukeJ2y ago
It is, yes.
Thinker
Thinker2y ago
Then run dotnet add package name-of-library in your project directory That handles everything for you Including dependencies
LukeJ
LukeJ2y ago
That seems to have done it, thanks. /solved
Thinker
Thinker2y ago
/close, catsip
LukeJ
LukeJ2y ago
Ach! I keep thinking it's like in the C/C++ server.
Accord
Accord2y ago
✅ This post has been marked as answered!