✅ Should NuGet package be installed both in the main project and class library?
Hello,
A NuGet package exposes some interfaces which I would like to implement, but the library also needs configuration, which must happen in
Program.cs
.
Should I only install the NuGet package in the class library and reference it in the main project, or install it in each project?7 Replies
if you install it in the class library, the package will be transitively available in the main project
assuming the main project references the class library
Yes, it's MassTransit configuration
that's what i do for MT yeah
i install the actual package in the MyApp.Core project
which MyApp.UI references
and in program.cs i do the setup there
And you also install the queue library of your choice in the Core project as well? (e.g. MassTransit.RabbitMq)
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
Got it, thanks
$close
If you have no further questions, please use /close to mark the forum thread as answered