sec / dotnet-core-freebsd-source-build

Collection of script to build .NET Core under FreeBSD OS (with binary releases)
MIT License
53 stars 4 forks source link

build_installer_without_aspnet.sh error - DownloadFile error #13

Closed ajensenwaud closed 1 year ago

ajensenwaud commented 2 years ago

OS: FreeBSD 13.1-RELEASE Command: as per below

aj@dotnet:~/dotnet-core-freebsd-source-build % sudo ./build_installer_without_aspnet.sh
Password:
cp: sdk/artifacts/packages/Release/NonShipping/dotnet-toolset-internal-*.zip: No such file or directory
##vso[task.setvariable variable=Artifacts;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts
##vso[task.setvariable variable=Artifacts.Toolset;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/toolset
##vso[task.setvariable variable=Artifacts.Log;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/log/Release
##vso[task.setvariable variable=Temp;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/tmp/Release
##vso[task.setvariable variable=TMP;isSecret=false;isOutput=true]/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/tmp/Release
Attempting to install dotnet from public_location.
##vso[task.prependpath]/usr/home/aj/dotnet-core-freebsd-source-build/installer//.dotnet
##vso[task.setvariable variable=DOTNET_MULTILEVEL_LOOKUP;isSecret=false;isOutput=true]0
##vso[task.setvariable variable=DOTNET_SKIP_FIRST_TIME_EXPERIENCE;isSecret=false;isOutput=true]1
##vso[task.setvariable variable=NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS;isSecret=false;isOutput=true]20
##vso[task.setvariable variable=NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS;isSecret=false;isOutput=true]20
##vso[task.setvariable variable=NUGET_ENABLE_EXPERIMENTAL_HTTP_RETRY;isSecret=false;isOutput=true]true
##vso[task.setvariable variable=NUGET_EXPERIMENTAL_MAX_NETWORK_TRY_COUNT;isSecret=false;isOutput=true]6
##vso[task.setvariable variable=NUGET_EXPERIMENTAL_NETWORK_RETRY_DELAY_MILLISECONDS;isSecret=false;isOutput=true]1000
/usr/home/aj/dotnet-core-freebsd-source-build/installer/.dotnet/sdk/6.0.201/MSBuild.dll /nologo -logger:/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.ArcadeLogging.dll -maxcpucount /m -verbosity:m /v:minimal /bl:/usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/log/Release/Build.binlog /clp:Summary /nr:false /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=true /p:Configuration=Release /p:RepoRoot=/usr/home/aj/dotnet-core-freebsd-source-build/installer/ /p:Restore=true /p:Build=true /p:Rebuild=false /p:Test=false /p:Pack=true /p:IntegrationTest=false /p:PerformanceTest=false /p:Sign=false /p:Publish=false /p:Rid=freebsd-x64 /p:OSName=freebsd /p:OfficialBuildId=20211229.99 /p:IncludeAspNetCoreRuntime=false /warnaserror /usr/home/aj/dotnet-core-freebsd-source-build/installer/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.22314.7/tools/Build.proj
  Determining projects to restore...
  Restored /usr/home/aj/dotnet-core-freebsd-source-build/installer/.nuget/packages/microsoft.dotnet.arcade.sdk/6.0.0-beta.22314.7/tools/Tools.proj (in 158 ms).
Attempting to install dotnet from public_location.
  Determining projects to restore...
  All projects are up-to-date for restore.
  Microsoft.DotNet.Tools.Tests.Utilities -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/bin/Microsoft.DotNet.Tools.Tests.Utilities/Release/net6.0/Microsoft.DotNet.Tools.Tests.Utilities.dll
  Determining projects to restore...
  EndToEnd.Tests -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/bin/EndToEnd.Tests/Release/net6.0/EndToEnd.Tests.dll
  core-sdk-tasks -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/bin/core-sdk-tasks/Release/net6.0/core-sdk-tasks.dll
  Microsoft.Dotnet.Sdk.Internal -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/bin/Microsoft.Dotnet.Sdk.Internal/Release/netstandard2.0/Microsoft.Dotnet.Sdk.Internal.dll
  core-sdk-tasks.Tests -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/bin/core-sdk-tasks.Tests/Release/net6.0/core-sdk-tasks.Tests.dll
  Restored /usr/home/aj/dotnet-core-freebsd-source-build/installer/src/core-sdk-tasks/core-sdk-tasks.csproj (in 322 ms).
  core-sdk-tasks -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/tasks/bin/core-sdk-tasks/Release/net6.0/core-sdk-tasks.dll
  redist -> /usr/home/aj/dotnet-core-freebsd-source-build/installer/artifacts/bin/redist/Release/net6.0/redist.dll
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018: The "DownloadFile" task failed unexpectedly. [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018: System.AggregateException: One or more errors occurred. (A task was canceled.) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:  ---> System.Threading.Tasks.TaskCanceledException: A task was canceled. [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /_/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49 [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack(ITaskBuilder taskBuilder) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.TaskSchedulerAwaitTaskContinuation.<>c.<Run>b__2_0(Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.RequestBuilder.DedicatedThreadsTaskScheduler.<InjectThread>b__6_0() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Thread.StartHelper.Callback(Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Thread.StartCallback() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018: --- End of stack trace from previous location --- [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:  [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    --- End of inner exception stack trace --- [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /_/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49 [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
##vso[task.logissue type=error;sourcepath=/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets;linenumber=389;columnnumber=5;code=MSB4018;](NETCORE_ENGINEERING_TELEMETRY=Build) The "DownloadFile" task failed unexpectedly.%0ASystem.AggregateException: One or more errors occurred. (A task was canceled.)%0A ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.%0A   at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions)%0A   at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /_/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49%0A   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)%0A   at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken)%0A   at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution)%0A   at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken)%0A   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine%5D(TStateMachine& stateMachine)%0A   at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken)%0A   at Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack(ITaskBuilder taskBuilder)%0A   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)%0A   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)%0A   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)%0A   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()%0A   at System.Threading.Tasks.TaskSchedulerAwaitTaskContinuation.<>c.<Run>b__2_0(Object state)%0A   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)%0A   at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task)%0A   at Microsoft.Build.BackEnd.RequestBuilder.DedicatedThreadsTaskScheduler.<InjectThread>b__6_0()%0A   at System.Threading.Thread.StartHelper.Callback(Object state)%0A   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)%0A   at System.Threading.Thread.StartCallback()%0A--- End of stack trace from previous location ---%0A%0A   --- End of inner exception stack trace ---%0A   at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /_/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49%0A   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()%0A   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)

Build FAILED.

/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018: The "DownloadFile" task failed unexpectedly. [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018: System.AggregateException: One or more errors occurred. (A task was canceled.) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:  ---> System.Threading.Tasks.TaskCanceledException: A task was canceled. [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /_/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49 [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack(ITaskBuilder taskBuilder) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.TaskSchedulerAwaitTaskContinuation.<>c.<Run>b__2_0(Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.RequestBuilder.DedicatedThreadsTaskScheduler.<InjectThread>b__6_0() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Thread.StartHelper.Callback(Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at System.Threading.Thread.StartCallback() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018: --- End of stack trace from previous location --- [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:  [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    --- End of inner exception stack trace --- [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.DotNet.Arcade.Sdk.DownloadFile.Execute() in /_/src/Microsoft.DotNet.Arcade.Sdk/src/DownloadFile.cs:line 49 [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/targets/GenerateLayout.targets(389,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/usr/home/aj/dotnet-core-freebsd-source-build/installer/src/redist/redist.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:01:48.66
Build failed with exit code 1. Check errors above.
##vso[task.complete result=Failed;]msbuild execution failed.

Output from dmesg:

aj@dotnet:~/dotnet-core-freebsd-source-build % dmesg
Copyright (c) 1992-2021 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64
FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)
VT(vga): text 80x25
CPU: AMD Ryzen 5 5600G with Radeon Graphics          (3865.09-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0xa50f00  Family=0x19  Model=0x50  Stepping=0
  Features=0x1783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x182201<SSE3,SSSE3,CX16,SSE4.1,SSE4.2>
  AMD Features=0x2a100800<SYSCALL,NX,FFXSR,RDTSCP,LM>
  AMD Features2=0x13<LAHF,CMP,CR8>
  Structured Extended Features=0x401<FSGSBASE,INVPCID>
  AMD Extended Feature Extensions ID EBX=0x4000000<SSB_NO>
  TSC: P-state invariant
real memory  = 9126805504 (8704 MB)
avail memory = 8291586048 (7907 MB)
Event timer "LAPIC" quality 100
ACPI APIC Table: <VBOX   VBOXAPIC>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
random: unblocking device.
ioapic0: MADT APIC ID 2 != hw id 0
ioapic0 <Version 2.0> irqs 0-23
Launching APs: 1
random: entropy device external interface
kbd1 at kbdmux0
vtvga0: <VT VGA driver>
smbios0: <System Management BIOS> at iomem 0xfff60-0xfff7e
smbios0: Version: 2.5, BCD Revision: 2.5
aesni0: No AES or SHA support.
acpi0: <VBOX VBOXXSDT>
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
cpu0: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 1.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
vgapci0: <VGA-compatible display> port 0xd010-0xd01f mem 0xe0000000-0xe7ffffff,0xf0000000-0xf01fffff irq 18 at device 2.0 on pci0
vgapci0: Boot video device
em0: <Intel(R) Legacy PRO/1000 MT 82540EM> port 0xd020-0xd027 mem 0xf0200000-0xf021ffff irq 19 at device 3.0 on pci0
em0: Using 1024 TX descriptors and 1024 RX descriptors
em0: Ethernet address: 08:00:27:ac:db:c4
em0: netmap queues/slots: TX 1/1024, RX 1/1024
pcm0: <Intel ICH (82801AA)> port 0xd100-0xd1ff,0xd200-0xd23f irq 21 at device 5.0 on pci0
pcm0: <SigmaTel STAC9700/83/84 AC97 Codec>
ohci0: <Apple KeyLargo/Intrepid USB controller> mem 0xf0804000-0xf0804fff irq 22 at device 6.0 on pci0
usbus0 on ohci0
usbus0: 12Mbps Full Speed USB v1.0
pci0: <bridge> at device 7.0 (no driver attached)
acpi_acad0: <AC Adapter> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
WARNING: Device "psm" is Giant locked and may be deleted before FreeBSD 14.0.
psm0: model IntelliMouse Explorer, device ID 4
orm0: <ISA Option ROM> at iomem 0xc0000-0xc7fff pnpid ORM0000 on isa0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff pnpid PNP0900 on isa0
atrtc0: <AT realtime clock> at port 0x70 irq 8 on isa0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
atrtc0: non-PNP ISA device will be removed from GENERIC in FreeBSD 14.
Timecounter "TSC-low" frequency 1946604541 Hz quality 0
Statistical lapic calibration failed!  Clocks might be ticking at variable rates.
Falling back to slow lapic calibration.
Timecounters tick every 10.000 msec
pcm0: measured ac97 link rate at 46779 Hz
ugen0.1: <Apple OHCI root HUB> at usbus0
uhub0 on usbus0
uhub0: <Apple OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
Trying to mount root from ufs:/dev/ada0s1a [rw]...
uhub0: 12 ports with 12 removable, self powered
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <VBOX HARDDISK 1.0> ATA-6 device
ada0: Serial Number VBecd08b65-0d02e6df
ada0: 33.300MB/s transfers (UDMA2, PIO 65536bytes)
ada0: 40960MB (83886080 512 byte sectors)
WARNING: / was not properly dismounted
intsmb0: <Intel PIIX4 SMBUS Interface> irq 23 at device 7.0 on pci0
intsmb0: intr IRQ 9 enabled revision 0
smbus0: <System Management Bus> on intsmb0
lo0: link state changed to UP
em0: link state changed to UP
Security policy loaded: MAC/ntpd (mac_ntpd)
ajensenwaud commented 2 years 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.
ajensenwaud commented 2 years ago

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?

sec commented 2 years ago

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.