question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet publish doesn't copy proper native/xenko dependencies

See original GitHub issue

Release Type: GitHub

Version: master

Describe the bug Running dotnet publish does not properly copy dependencies. It seems dotnet publish uses slightly different targets than what’s done for standard build. (note: heard it might be unified in .NET Core 3.0)

To Reproduce Steps to reproduce the behavior:

  1. Create a new game with Linux or macOS
  2. Build Linux or macOS (might be optional)
  3. Run dotnet publish

Expected behavior Bin\Linux\Debug\linux-x64\publish should contain all the native files (that are pulled by .ssdeps) just like in Bin\Linux\Debug\linux-x64 but it doesnt.

The fix likely needs to be done in https://github.com/xenko3d/xenko/blob/master/sources/core/Xenko.Core/build/Xenko.Core.targets

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jazzaycommented, Jan 20, 2019

I have a solution for this will submit a PR.

0reactions
jazzaycommented, Jan 19, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet publish doesn't copy proper native/xenko ...
Running dotnet publish does not properly copy dependencies. It seems dotnet publish uses slightly different targets than what's done for ...
Read more >
dotnet publish does not have some Nuget dependencies ...
I got it to work by adding a buildTransitive .targets file which copies the content files only if the project is an executable...
Read more >
Cannot find dependencies when executing an assembly ...
I wrote a .NET Core 2.0 console application. Publish using dotnet publish , But there was an error during execution: ...
Read more >
Xenko 3.1 release notes
If you don't reference those packages, they won't be packaged with ... [Build] Publish was not properly copying native libs and compiled ...
Read more >
Too many dlls when publishing dotnet
Self-contained means that all of the dependencies are contained in the output folder. Basically, you're shipping a private copy of the entire ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found