Benny
Benny

Reputation: 31

Create a C# library which in turn references another library without actually having it

I want to create a C# library HighLevel.dll which also references another library LowLevel.dll with Visual Studio. Both libraries are separate projects in separate repositories. When I add the LowLevel.dll as a reference to the HighLevel.dll project I actually need the compiled LowLevel.dll assembly. That also means whoever clones the HighLevel library project needs the LowLevel.dll in place.
Is it possible to add a reference whithout actually having the target LowLevel.dll in place?
If this has something to do with loading a libary at runtime how can this be done?

Upvotes: 0

Views: 127

Answers (1)

Neil
Neil

Reputation: 11889

It sounds like you want to create a nuget package, that references other nuget packages. When someone installs your package, the other nuget packages are automatically pulled in too.

Upvotes: 1

Related Questions