-
Notifications
You must be signed in to change notification settings - Fork 440
Remove Arcade net9.0 workarounds #17987
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
Conversation
|
The tools.sh override is still needed since not all repos have an updated Arcade which allows it to the framework version to be overridden. That means the corresponding issue will remain open until repos have got the new Arcade. |
src/SourceBuild/content/build.sh
Outdated
| # BuildXPlatTasks uses NetCurrent but that is not set since Arcade isn't used here. | ||
| # Bootstrap NetCurrent by deriving it from the installed .NET CLI version. | ||
| dotnetVersion=$(echo $("$CLI_ROOT/dotnet" --version) | sed -E 's/^([0-9]+\.[0-9]+)\..*/\1/') | ||
| netCurrent="net$dotnetVersion" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: a bit light-weight variant:
netCurrent="$(dotnet --version | while IFS='.' read major minor _; do echo "net$major.$minor"; done)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I like the readability of that.
Contributes to dotnet/source-build#3743