I have Xamain.Mac project named MainApp (Xamarin Mac Full 4.8), which references the Class Library project named Lib (Net FW 4.8).
The Lib project have the txt file ContentFile.txt with Build Action = Content and Copy to output directory = Always. The ContentFile.txt contains some data, needed by Lib to work.
When building the solution, I expect that ContentFile.txt will be included in Application bundle (MainApp.app).
But actually I am observing following behaviour:
So, the question is - how to configure solution to include Content files from inside referenced projects to the main application bundle? Ideally, without any explicit references to these content files outside the Lib project.
What I already tried, but all of this looks not very good:
All of this worked, but required to 'leak' internal information from inside Lib project and I wonder if the better solutions are exist.
Additional note: the Lib project is also used in Windows version of my app, so I can't change Lib project in any way that will make it incompatible with windows.