Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
dotnet publish doesn't copy proper native/xenko dependencies #331
Release Type: GitHub
Describe the bug
The fix likely needs to be done in https://github.com/xenko3d/xenko/blob/master/sources/core/Xenko.Core/build/Xenko.Core.targets
Switching a Test Game's Windows project to netcoreapp2.1 has build output problems. You can not even run it from VS2017. Exception file not found for Xenko.Graphics, among others.
I find the Graphics dll for example here:
I tried forcing the Game project runtime to this to see if it would pick it up
Excerpt from VS output panel:
Pure NetStandard libaries are found and loaded fine, run time specific not.
Perhaps we should fix these issues with Windows-NetCore prior to attempting publish on any other platform as it's likely a sign of dependency/run time config issues?
Explicitly adding this reference to the Windows project fixes the problems above:
Which makes sense I guess since that Project is where the runtime.json file is. And now I see that the MacOS project contains that already.
If I try to run a Windows published build from cmd line i get this:
Native dependency libcore among others are missing, and there is no child x64 directory.
With these same changes applied to the macOS project and manually copying the data folder to publish (for now) I can successfully run a simple test game on my MacBookPro. Note however that it takes forever (7 mins) to launch. Looks like most of that time is compiling shaders.
Now I will see how I can get the data folder to properly publish automatically.