I have a .Net 5 WPF project and a few .Net 5 class library projects.
The class library projects are not referenced directly from the WPF assembly because the class libraries are meant to be loaded in runtime by the wpf app.
This works fine by using interfaces defined in a common lib (referred to from both wpf assembly and relevant class libraries.
If I then add a nuget dependency to one of the class library projects, the assembly in the nuget package is not copied anywhere.
I expected that to be copied to the same directory as the respective class library dll file is written to (where-ever this is set to be by the OutputPath property of the csproj file)
Something I misunderstand or is this a bug?
Is the only possibility (a quite "dirty" one, but it works) to copy the referenced assembly from the nuget package to the output folder by post build event?
(To be a bit specific, I am using Prism and DirectoryModuleCatalog for loading the class libraries)