-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download correct app-host for the target RID in order to support cross-compilation #320
Comments
Ah yeah, this makes sense. Currently we are only using the app host that is part of the host SDK. We need to stop doing to that and instead download the correct nuget package depending on the RID e.g. https://www.nuget.org/packages/runtime.linux-x64.Microsoft.NETCore.DotNetAppHost for linux-x64 By doing that we also solve cross compiling as this is pretty much the same issue. |
I'm thinking that we might just want to start with just having an |
This should not be working in the latest release. |
Thanks! I believe that some runtime packs are missing to enable this. The Would it simply be a matter of adding these to here? https://github.com/bazelbuild/rules_dotnet/blob/master/dotnet/private/sdk/gen/runtime-packs.json |
@njlr I just merged a change that adds the packs, I'm doing a 0.15.1 release in a bit. |
This works! Thank you 👍 |
Full repro here: https://github.com/njlr/rules-dotnet-publish-docker
The Debian based image works fine:
However, running the Alpine image gives an error:
Note that the file does exist, this is the error Alpine gives when the binary format is not properly recognized!
The text was updated successfully, but these errors were encountered: