I have a Solution with .NET Framework Project A
which builds a winforms application containing a class, MyPlayer
which requires LibVLCSharp. In order for the application to build and run correctly I had to add the following Nuget packages:
- LibVLCSharp
- LibVLCSharp.WinForms
- VideoLAN.LibVLC.Windows
Now I want to move class MyPlayer
to a separate .NET Standard class library, Project B
, to separate out function from UI and so that it can be used by multiple other projects targeted to different platforms. In order for B
to compile I only had to add the LibVLCSharp Nuget package. Then I set B
as a Reference for A
.
Obviously, Project A
is going to require the other two Nuget packages somehow, but I am unsure to which project it is most appropriate to add them. What makes the most sense in this situation? Or is there really only one way it would work?