-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
More robust identification of the build OS in Microsoft.AspNetCore.App.Runtime.csproj #37400
Comments
@davidwrighton @rainersigwald the requirements here are very similar to the requests in dotnet/msbuild#2468 and dotnet/msbuild#5065. We should download the
Differentiating between The special case for using Differentiating between Linux MUSL and generic Linux probably requires
Which do you prefer❔ I'm probably missing a few things and would appreciate your guidance❕ |
FWIW, the approach runtime takes is: |
I have been trying to build
But I am running into errors because Grpc.Tools isn't available for
@ayakael did you run into this? How did you work around it? |
I have not encoutnered this issue, investigating why you have it but source-build aspnetcore doesn't |
@omajid Oh right, I go around this issue by building aspnetcore with --os-name=linux-musl. Thus, |
aspnetcore/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj
Lines 101 to 110 in a0b950f
This hardcodes some assumptions that are valid in the CI legs, but may not be in other systems.
For example, if this project is being built on Linux arm64 hardware using an OS that uses musl - in other words,
linux-musl-arm64
, it will try and use thelinux-arm64
crossgen2 instead.Another example, if this code is being built on Windows on arm64 (or really, any architecture that's not x64), it will use the wrong crossgen,
win-x64
, which will most likely fail to run on an Arm 64 machine.See also this comment posted by @dougbu in #37374 (comment)
@dougbu
The text was updated successfully, but these errors were encountered: