Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use alternate implementation to derive version
  • Loading branch information
mthalman committed Dec 15, 2023
commit fe4aff3f1932cec4cc605308378569eb7536262b
3 changes: 1 addition & 2 deletions src/SourceBuild/content/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ if [ "$alternateTarget" == "true" ]; then
else
# 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"
netCurrent="$(dotnet --version | while IFS='.' read major minor _; do echo "net$major.$minor"; done)"

"$CLI_ROOT/dotnet" msbuild "$SCRIPT_ROOT/eng/tools/init-build.proj" -p:NetCurrent=$netCurrent -bl:"$SCRIPT_ROOT/artifacts/log/Debug/BuildXPlatTasks_$LogDateStamp.binlog" -flp:LogFile="$SCRIPT_ROOT/artifacts/logs/BuildXPlatTasks_$LogDateStamp.log" -t:PrepareOfflineLocalTools ${MSBUILD_ARGUMENTS[@]} "$@"

Expand Down