Packing an external DLL with my own DLL
I've written a library that also uses another external library, packed into a .dll file. When I build my library file, it doesn't pack the external dll in with it. How can I do this? Do I need the source?
15 Replies
You can't.
So I have to include the source in my own project in order to do it?
It is a library, not an executable. Avoid doing that even if you could.
I would never use a library that unloads something at runtime, suspicious as hell
@UnemployedNinja wdym "with my dll"?
in C# the way you distribute libraries is with a nuget package
if that other DLL is a nuget as well, just depend on it, the tooling will sort everything out
if it's a native DLL that's not in a nuget, then there's some work you'll have to do
@Buddy I don't necessarily think they're referring to like, extracting the other DLL to disk at runtime
b/c that would be quite silly
I don't mean that lol, no
Ah, I see.
But yea, I just gave up for now, I'll deal with two separate DLL files until I have more knowledge
@UnemployedNinja what's the other DLL?
and is this Unity?
b/c iirc Unity doesn't play well with nuget
One is my library, and the other DLL is a required library
No, just C#
Visual Studio
Nothing else
yeah but
what is that required library?
An old AMF library called Fluorine
like gimme a name?
is it ffmpeg? Joe Blow's Amazing DLL You Can't Live Without Or Your Money Back?
thank you
Sorry sir
I started C# like 3 days ago, idk what I'm doing atm lol
when you get to sharing that library with others (which I assume is what you're getting to) you'll learn about nuget
and you can pack the DLL in then
but for now, don't worry about it
I've crossed paths with it briefly, Fluorine required some a nuget package
System.Security.Permissions
ty for the info though, appreciate it