C#C
C#12mo ago
madmike

Add NuGet package to shared library not possible (Rider)

In general, it should be possible to install NuGet packages in a shared library, right? 🥴 I have a weird sln.

I have 2 projects in my solution, 1 App project that depends on 1 Shared Library project. I can only install NuGet packages in the App project, and for some reason the namespaces become available in the Shared Project then as well.
If I try to add the NuGet package to the Shared Project, Rider simply opens a dialog to confirm and then does nothing.

See also the screenshot. Dependencies -> .NET 8.0 is missing from the BitGame.Core project where packages would usually show up.
Maybe the .csproj file needs fixing?
image.png
Was this page helpful?