Skip to content

Commit 793fccc

Browse files
committed
dotnet-8: use offline build
Dotnet-8 tag 8.0.10 or older cannot be built anymore, as Microsoft decided to retire the following repositories: * https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL.Selfhost/nuget/v3/index.json * https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL/nuget/v3/index.json The repositories were replaced with: * https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/BuildXL.External.Dependencies/nuget/v3/index.json The problem is that the tagged releases of dotnet <= 8.0.10 will never be able to build anymore, as tags cannot be replaced. The fix has landed to dotnet/msbuild#10838, and the following tagged releases should be buildable again. See: microsoft/BuildXL#1343 But, if we leverage the offline build, after the prep.sh has been run, there is no required connection to the inexistent repositories, thus the build will work for the old tags too.
1 parent f34d2af commit 793fccc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dotnet-8.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,13 @@ pipeline:
5555
./prep.sh --bootstrap
5656
# /p:PrebuiltPackagesPath=/home/build/src/packages \
5757
- runs: |
58-
./build.sh --online --clean-while-building \
58+
./build.sh --clean-while-building \
5959
-- \
6060
/v:n \
6161
/p:ContinueOnPrebuiltBaselineError=true \
6262
/p:MinimalConsoleLogOutput=false \
63-
/p:SkipPortableRuntimeBuild=true
63+
/p:SkipPortableRuntimeBuild=true \
64+
/p:BuildWithOnlineSources=false
6465
- runs: |
6566
mkdir -p "${{targets.destdir}}"/usr/share/dotnet
6667
mkdir -p "${{targets.destdir}}"/usr/bin

0 commit comments

Comments
 (0)