Closed ajensenwaud closed 1 year ago
The same error occurs when running build_installer.sh
. It seems to be some sort of stale file version reference. If you could point me to where in the build scripts it is managed, I can help update.
ShouldDownload=true
Using "DownloadFile" task from assembly "/usr/home/aj/dotnet-core-freebsd-source-build/installer/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.22314.7/tools/netcoreapp3.1/Microsoft.DotNet.Arcade.Sdk.dll".
Task "DownloadFile"
Task Parameter:DestinationPath=/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/obj/redist/Release/downloads/dotnet-toolset-internal-6.0.400-rtm.22368.21.zip
Task Parameter:
Uris=
https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.400-rtm.22368.21/dotnet-toolset-internal-6.0.400-rtm.22368.21.zip
DownloadDestination=/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/obj/redist/Release/downloads/dotnet-toolset-internal-6.0.400-rtm.22368.21.zip
ShouldDownload=true
https://dotnetbuilds.blob.core.windows.net/public/Sdk/6.0.400-rtm.22368.21/dotnet-toolset-internal-6.0.400-rtm.22368.21.zip
DownloadDestination=/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/obj/redist/Release/downloads/dotnet-toolset-internal-6.0.400-rtm.22368.21.zip
ShouldDownload=true
Downloading 'https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.400-rtm.22368.21/dotnet-toolset-internal-6.0.400-rtm.22368.21.zip' to '/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/obj/redist/Release/downloads/dotnet-toolset-internal-6.0.400-rtm.22368.21.zip'
Problems downloading file from 'https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.400-rtm.22368.21/dotnet-toolset-internal-6.0.400-rtm.22368.21.zip'. Does the resource exist on the storage? NotFound : The specified blob does not exist.
Downloading 'https://dotnetbuilds.blob.core.windows.net/public/Sdk/6.0.400-rtm.22368.21/dotnet-toolset-internal-6.0.400-rtm.22368.21.zip' to '/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/obj/redist/Release/downloads/dotnet-toolset-internal-6.0.400-rtm.22368.21.zip'
^CAttempting to cancel the build...
1>Done executing task "MSBuild" -- FAILED.
3:2>Done executing task "MSBuild" -- FAILED.
1>Done building target "Execute" in project "Build.proj" -- FAILED.
3:2>Done building target "Build" in project "Microsoft.DotNet.Cli.sln" -- FAILED.
1>Done Building Project "/usr/home/aj/dotnet-core-freebsd-source-build/installer/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.22314.7/tools/Build.proj" (default targets) -- FAILED.
3:2>Done Building Project "/usr/home/aj/dotnet-core-freebsd-source-build/installer/Microsoft.DotNet.Cli.sln" (Build;Pack target(s)) -- FAILED.
My hypothesis on the error is that the command cp sdk/artifacts/packages/Release/NonShipping/dotnet-toolset-internal-*.zip [...]
fails and therefore .NET tries to download it instead. I noticed that the dotnet-toolset-internal-[xxx].zip file is part of the .NET SDK on Github and I also noticed that there is a build script called build_sdk.sh
, which is not mentioned in the build instructions. Therefore I ran build_sdk.sh
, which produced the following errror:
Microsoft.NET.Sdk.Razor.SourceGenerators.Tests -> /usr/home/aj/dotnet-core-freebsd-source-build/sdk/artifacts/bin/Microsoft.NET.Sdk.Razor.SourceGenerators.Tests/Release/Microsoft.NET.Sdk.Razor.SourceGenerators.Tests.dll
Microsoft.NET.Sdk.BlazorWebAssembly.Tests -> /usr/home/aj/dotnet-core-freebsd-source-build/sdk/artifacts/bin/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/Release/Microsoft.NET.Sdk.BlazorWebAssembly.Tests.dll
Microsoft.NET.Sdk.Razor.Tool.Tests -> /usr/home/aj/dotnet-core-freebsd-source-build/sdk/artifacts/bin/Tests/Microsoft.NET.Sdk.Razor.Tool.Tests/Release/Microsoft.NET.Sdk.Razor.Tool.Tests.dll
ConsoleDemoWithCasing -> /usr/home/aj/dotnet-core-freebsd-source-build/sdk/src/Tests/Microsoft.DotNet.PackageInstall.Tests/SampleGlobalToolWithDifferentCasing/bin/Release/netcoreapp2.1/ConsoleDemoWithCasing.dll
Successfully created package '/usr/home/aj/dotnet-core-freebsd-source-build/sdk/artifacts/bin/Microsoft.DotNet.PackageInstall.Tests/Release/TestAssetLocalNugetFeed/Global.Tool.Console.Demo.With.Casing.2.0.4.nupkg'.
Determining projects to restore...
Restored /usr/home/aj/dotnet-core-freebsd-source-build/sdk/src/Tests/Microsoft.DotNet.PackageInstall.Tests/SampleGlobalToolWithShim/consoledemo.csproj (in 8 ms).
consoledemo -> /usr/home/aj/dotnet-core-freebsd-source-build/sdk/artifacts/bin/Microsoft.DotNet.PackageInstall.Tests/TestAsset/SampleGlobalToolWithShim/bin/Release/netcoreapp2.1/consoledemo.dll
consoledemo -> /usr/home/aj/dotnet-core-freebsd-source-build/sdk/artifacts/bin/Microsoft.DotNet.PackageInstall.Tests/TestAsset/SampleGlobalToolWithShim/bin/Release/netcoreapp2.1/publish/
consoledemo -> /usr/home/aj/dotnet-core-freebsd-source-build/sdk/src/Tests/Microsoft.DotNet.PackageInstall.Tests/SampleGlobalToolWithShim/bin/Release/netcoreapp2.1/consoledemo.dll
Successfully created package '/usr/home/aj/dotnet-core-freebsd-source-build/sdk/artifacts/bin/Microsoft.DotNet.PackageInstall.Tests/Release/TestAssetLocalNugetFeed/global.tool.console.demo.with.shim.1.0.4.nupkg'.
dotnet.Tests -> /usr/home/aj/dotnet-core-freebsd-source-build/sdk/artifacts/bin/redist/Release/dotnet.Tests.dll
Build FAILED.
/usr/home/aj/dotnet-core-freebsd-source-build/sdk/src/Layout/redist/targets/OverlaySdkOnLKG.targets(73,5): error MSB3073: The command "/usr/home/aj/dotnet-core-freebsd-source-build/sdk/artifacts/bin/redist/Release/dotnet/dotnet new" exited with code 150. [/usr/home/aj/dotnet-core-freebsd-source-build/sdk/src/Layout/redist/redist.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:54.60
Build failed with exit code 1. Check errors above.
##vso[task.complete result=Failed;]msbuild execution failed.
Could this be the source of the above error?
Hi, This can fail if build script fail to download SDK - you can build SDK locally but there's a high chance it won't match some version numbers - I did a refactor of build_installer scripts, so they download that problematic ZIP (I haven't updated those just by being lazy) :) Please recheck with newest changes from main and it should work.
edit: tbh I haven't run build_sdk.sh in a while, it's just better to wait for official builds to popup and use those, as those are not platform specific.
OS: FreeBSD 13.1-RELEASE Command: as per below
Output from
dmesg
: