runtime: dotnet publish quite often fails with System.NullReferenceException on Apple Silicon
Steps to reproduce the same as for https://github.com/dotnet/runtime/issues/48902, tested with dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64 on macOS 11.3 Beta 7 (see https://github.com/dotnet/runtime/issues/48902#issuecomment-819682374):
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
, or
Microsoft (R) Build Engine version 16.10.0-preview-21181-07+073022eb4 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
System.NullReferenceException: Object reference not set to an instance of an object.
at System.SZArrayHelper.GetEnumerator[T]()
at Microsoft.Build.Evaluation.ProjectCollection.RegisterLoggers(IEnumerable`1 loggers)
at Microsoft.Build.Evaluation.ProjectCollection..ctor(IDictionary`2 globalProperties, IEnumerable`1 loggers, IEnumerable`1 remoteLoggers, ToolsetDefinitionLocations toolsetDefinitionLocations, Int32 maxNodeCount, Boolean onlyLogCriticalEvents, Boolean loadProjectsReadOnly)
at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, TextWriter targetsWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler, Boolean interactive, Boolean isolateProjects, GraphBuildOptions graphBuildOptions, Boolean lowPriority, String[] inputResultsCaches, String outputResultsCache)
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine)
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at System.SZArrayHelper.GetEnumerator[T]()
at Microsoft.Build.Evaluation.ProjectCollection.RegisterLoggers(IEnumerable`1 loggers)
at Microsoft.Build.Evaluation.ProjectCollection..ctor(IDictionary`2 globalProperties, IEnumerable`1 loggers, IEnumerable`1 remoteLoggers, ToolsetDefinitionLocations toolsetDefinitionLocations, Int32 maxNodeCount, Boolean onlyLogCriticalEvents, Boolean loadProjectsReadOnly)
at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, TextWriter targetsWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler, Boolean interactive, Boolean isolateProjects, GraphBuildOptions graphBuildOptions, Boolean lowPriority, String[] inputResultsCaches, String outputResultsCache)
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine)
at Microsoft.Build.CommandLine.MSBuildApp.Main(String[] args)
, or
Microsoft (R) Build Engine version 16.10.0-preview-21181-07+073022eb4 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
Restored .../Sol-tmp3/Sol.csproj (in 443 ms).
You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(257,5): error MSB4018: The "CheckForImplicitPackageReferenceOverrides" task failed unexpectedly. [.../Sol-tmp3/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(257,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object. [.../Sol-tmp3/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(257,5): error MSB4018: at System.SZArrayHelper.GetEnumerator[T]() [.../Sol-tmp3/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(257,5): error MSB4018: at System.Linq.Lookup`2.Create(IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer) [.../Sol-tmp3/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(257,5): error MSB4018: at System.Linq.GroupedEnumerable`2.GetEnumerator() [.../Sol-tmp3/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(257,5): error MSB4018: at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() [.../Sol-tmp3/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(257,5): error MSB4018: at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source) [.../Sol-tmp3/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(257,5): error MSB4018: at Microsoft.NET.Build.Tasks.CheckForImplicitPackageReferenceOverrides.ExecuteCore() [.../Sol-tmp3/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(257,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [.../Sol-tmp3/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(257,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [.../Sol-tmp3/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.targets(257,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [.../Sol-tmp3/Sol.csproj]
, or
Microsoft (R) Build Engine version 16.10.0-preview-21181-07+073022eb4 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
Restored .../Sol-tmp4/Sol.csproj (in 349 ms).
You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: The "ProcessFrameworkReferences" task failed unexpectedly. [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object. [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at System.Linq.Enumerable.WhereEnumerableIterator`1.Select[TResult](Func`2 selector) [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector) [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at NuGet.Frameworks.FrameworkNameProvider.TryConvertOrNormalize(String key, IDictionary`2 mappings, IDictionary`2 reverse, String& value) [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at NuGet.Frameworks.FrameworkNameProvider.TryGetProfile(String frameworkIdentifier, String profileShortName, String& profile) [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at NuGet.Frameworks.NuGetFramework.ParseFolder(String folderName, IFrameworkNameProvider mappings) [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at NuGet.Frameworks.NuGetFramework.Parse(String folderName, IFrameworkNameProvider mappings) [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at NuGet.Frameworks.NuGetFramework.Parse(String folderName) [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at Microsoft.NET.Build.Tasks.ProcessFrameworkReferences.KnownFrameworkReference..ctor(ITaskItem item) [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at Microsoft.NET.Build.Tasks.ProcessFrameworkReferences.<>c.<ExecuteCore>b__109_0(ITaskItem item) [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at System.Linq.Enumerable.SelectArrayIterator`2.MoveNext() [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList() [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at Microsoft.NET.Build.Tasks.ProcessFrameworkReferences.ExecuteCore() [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute() [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [.../Sol-tmp4/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(64,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [.../Sol-tmp4/Sol.csproj]
, or
Microsoft (R) Build Engine version 16.10.0-preview-21181-07+073022eb4 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
Restored .../Sol-tmp6/Sol.csproj (in 272 ms).
You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : Process terminated. System.NullReferenceException: Object reference not set to an instance of an object. [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.SZArrayHelper.GetEnumerator[T]() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Linq.Enumerable.SelectIterator[TSource,TResult](IEnumerable`1 source, Func`3 selector)+MoveNext() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Collections.Immutable.ImmutableArray.CreateRange[T](IEnumerable`1 items) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamedTypeSymbol.MakeTypeParameters(BindingDiagnosticBag diagnostics) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamedTypeSymbol.get_TypeParameters() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol.Construct(ImmutableArray`1 typeArguments, Boolean unbound) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol.Construct(ImmutableArray`1 typeArguments) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Binder.ConstructNamedType(NamedTypeSymbol type, SyntaxNode typeSyntax, SeparatedSyntaxList`1 typeArgumentsSyntax, ImmutableArray`1 typeArguments, ConsList`1 basesBeingResolved, BindingDiagnosticBag diagnostics) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Binder.BindGenericSimpleNamespaceOrTypeOrAliasSymbol(GenericNameSyntax node, BindingDiagnosticBag diagnostics, ConsList`1 basesBeingResolved, NamespaceOrTypeSymbol qualifierOpt) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeOrAliasSymbol(ExpressionSyntax syntax, BindingDiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Binder.BindTypeOrAlias(ExpressionSyntax syntax, BindingDiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.ParameterHelpers.MakeParameters[TParameterSyntax,TParameterSymbol,TOwningSymbol](Binder binder, TOwningSymbol owner, SeparatedSyntaxList`1 parametersList, SyntaxToken& arglistToken, BindingDiagnosticBag diagnostics, Boolean allowRefOrOut, Boolean allowThis, Boolean addRefReadOnlyModifier, Boolean suppressUseSiteDiagnostics, Int32 lastIndex, Func`11 parameterCreationFunc, Boolean parsingFunctionPointer) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.ParameterHelpers.MakeParameters(Binder binder, Symbol owner, BaseParameterListSyntax syntax, SyntaxToken& arglistToken, BindingDiagnosticBag diagnostics, Boolean allowRefOrOut, Boolean allowThis, Boolean addRefReadOnlyModifier) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceOrdinaryMethodSymbol.MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceOrdinaryMethodSymbolBase.MethodChecks(BindingDiagnosticBag diagnostics) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberMethodSymbol.LazyMethodChecks() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberMethodSymbol.get_OverriddenOrHiddenMembers() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberContainerTypeSymbol.CheckMembersAgainstBaseType(BindingDiagnosticBag diagnostics, CancellationToken cancellationToken) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberContainerTypeSymbol.GetSynthesizedExplicitImplementations(CancellationToken cancellationToken) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberContainerTypeSymbol.ForceComplete(SourceLocation locationOpt, CancellationToken cancellationToken) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbol.ForceCompleteMemberByLocation(SourceLocation locationOpt, Symbol member, CancellationToken cancellationToken) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol.<>c__DisplayClass49_1.<ForceComplete>b__0(Int32 i) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Roslyn.Utilities.UICultureUtilities.<>c__DisplayClass6_0`1.<WithCurrentUICulture>b__0(T param) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Roslyn.Utilities.RoslynParallel.<>c__DisplayClass1_0.<For>g__errorHandlingBody|0(Int32 i) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Environment.FailFast(System.String, System.Exception) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.FatalError.Report(System.Exception, System.Action`1<System.Exception>) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.FatalError.ReportAndPropagate(System.Exception) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.FatalError.ReportAndPropagateUnlessCanceled(System.Exception, System.Threading.CancellationToken) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Roslyn.Utilities.RoslynParallel+<>c__DisplayClass1_0.<For>g__errorHandlingBody|0(Int32) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.SZArrayHelper.GetEnumerator[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Linq.Enumerable+<SelectIterator>d__184`2[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Collections.Generic.LargeArrayBuilder`1[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].AddRange(System.Collections.Generic.IEnumerable`1<System.__Canon>) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Collections.Generic.EnumerableHelpers.ToArray[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<System.__Canon>) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Linq.Enumerable.ToArray[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<System.__Canon>) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Collections.Immutable.ImmutableArray.CreateRange[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<System.__Canon>) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamedTypeSymbol.MakeTypeParameters(Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamedTypeSymbol.get_TypeParameters() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol.Construct(System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.CSharp.Symbols.TypeWithAnnotations>, Boolean) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol.Construct(System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.CSharp.Symbols.TypeWithAnnotations>) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Binder.ConstructNamedType(Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol, Microsoft.CodeAnalysis.SyntaxNode, Microsoft.CodeAnalysis.SeparatedSyntaxList`1<Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax>, System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.CSharp.Symbols.TypeWithAnnotations>, Roslyn.Utilities.ConsList`1<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol>, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Binder.BindGenericSimpleNamespaceOrTypeOrAliasSymbol(Microsoft.CodeAnalysis.CSharp.Syntax.GenericNameSyntax, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag, Roslyn.Utilities.ConsList`1<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol>, Microsoft.CodeAnalysis.CSharp.Symbols.NamespaceOrTypeSymbol) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeOrAliasSymbol(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag, Roslyn.Utilities.ConsList`1<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol>, Boolean) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Binder.BindTypeOrAlias(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag, Roslyn.Utilities.ConsList`1<Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol>, Boolean) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.ParameterHelpers.MakeParameters[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](Microsoft.CodeAnalysis.CSharp.Binder, System.__Canon, Microsoft.CodeAnalysis.SeparatedSyntaxList`1<System.__Canon>, Microsoft.CodeAnalysis.SyntaxToken ByRef, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag, Boolean, Boolean, Boolean, Boolean, Int32, System.Func`11<Microsoft.CodeAnalysis.CSharp.Binder,System.__Canon,Microsoft.CodeAnalysis.CSharp.Symbols.TypeWithAnnotations,System.__Canon,Microsoft.CodeAnalysis.RefKind,Int32,Microsoft.CodeAnalysis.SyntaxToken,Microsoft.CodeAnalysis.SyntaxToken,Boolean,Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag,System.__Canon>, Boolean) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.ParameterHelpers.MakeParameters(Microsoft.CodeAnalysis.CSharp.Binder, Microsoft.CodeAnalysis.CSharp.Symbol, Microsoft.CodeAnalysis.CSharp.Syntax.BaseParameterListSyntax, Microsoft.CodeAnalysis.SyntaxToken ByRef, Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag, Boolean, Boolean, Boolean) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceOrdinaryMethodSymbol.MakeParametersAndBindReturnType(Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceOrdinaryMethodSymbolBase.MethodChecks(Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberMethodSymbol.LazyMethodChecks() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberMethodSymbol.get_OverriddenOrHiddenMembers() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberContainerTypeSymbol.CheckMembersAgainstBaseType(Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag, System.Threading.CancellationToken) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberContainerTypeSymbol.GetSynthesizedExplicitImplementations(System.Threading.CancellationToken) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberContainerTypeSymbol.ForceComplete(Microsoft.CodeAnalysis.SourceLocation, System.Threading.CancellationToken) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbol.ForceCompleteMemberByLocation(Microsoft.CodeAnalysis.SourceLocation, Microsoft.CodeAnalysis.CSharp.Symbol, System.Threading.CancellationToken) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol+<>c__DisplayClass49_1.<ForceComplete>b__0(Int32) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Roslyn.Utilities.UICultureUtilities+<>c__DisplayClass6_0`1[[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<WithCurrentUICulture>b__0(Int32) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Roslyn.Utilities.RoslynParallel+<>c__DisplayClass1_0.<For>g__errorHandlingBody|0(Int32) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<ForWorker>b__1(System.Threading.Tasks.RangeWorker ByRef, Int32, Boolean ByRef) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Tasks.TaskReplicator+Replica`1[[System.Threading.Tasks.RangeWorker, System.Threading.Tasks.Parallel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ExecuteAction(Boolean ByRef) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Tasks.TaskReplicator+Replica.Execute() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Tasks.TaskReplicator+Replica+<>c.<.ctor>b__4_0(System.Object) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Tasks.Task.InnerInvoke() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Tasks.Task+<>c.<.cctor>b__284_0(System.Object) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Tasks.Task.ExecuteEntryUnsafe(System.Threading.Thread) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Tasks.Task.ExecuteFromThreadPool(System.Threading.Thread) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.ThreadPoolWorkQueue.Dispatch() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Thread+StartHelper.RunWorker() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Thread+StartHelper.Run() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Thread.StartCallback() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : System.NullReferenceException: Object reference not set to an instance of an object. [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.SZArrayHelper.GetEnumerator[T]() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Linq.Enumerable.SelectIterator[TSource,TResult](IEnumerable`1 source, Func`3 selector)+MoveNext() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Collections.Immutable.ImmutableArray.CreateRange[T](IEnumerable`1 items) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamedTypeSymbol.MakeTypeParameters(BindingDiagnosticBag diagnostics) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamedTypeSymbol.get_TypeParameters() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol.Construct(ImmutableArray`1 typeArguments, Boolean unbound) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol.Construct(ImmutableArray`1 typeArguments) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Binder.ConstructNamedType(NamedTypeSymbol type, SyntaxNode typeSyntax, SeparatedSyntaxList`1 typeArgumentsSyntax, ImmutableArray`1 typeArguments, ConsList`1 basesBeingResolved, BindingDiagnosticBag diagnostics) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Binder.BindGenericSimpleNamespaceOrTypeOrAliasSymbol(GenericNameSyntax node, BindingDiagnosticBag diagnostics, ConsList`1 basesBeingResolved, NamespaceOrTypeSymbol qualifierOpt) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Binder.BindNamespaceOrTypeOrAliasSymbol(ExpressionSyntax syntax, BindingDiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Binder.BindTypeOrAlias(ExpressionSyntax syntax, BindingDiagnosticBag diagnostics, ConsList`1 basesBeingResolved, Boolean suppressUseSiteDiagnostics) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.ParameterHelpers.MakeParameters[TParameterSyntax,TParameterSymbol,TOwningSymbol](Binder binder, TOwningSymbol owner, SeparatedSyntaxList`1 parametersList, SyntaxToken& arglistToken, BindingDiagnosticBag diagnostics, Boolean allowRefOrOut, Boolean allowThis, Boolean addRefReadOnlyModifier, Boolean suppressUseSiteDiagnostics, Int32 lastIndex, Func`11 parameterCreationFunc, Boolean parsingFunctionPointer) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.ParameterHelpers.MakeParameters(Binder binder, Symbol owner, BaseParameterListSyntax syntax, SyntaxToken& arglistToken, BindingDiagnosticBag diagnostics, Boolean allowRefOrOut, Boolean allowThis, Boolean addRefReadOnlyModifier) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceOrdinaryMethodSymbol.MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceOrdinaryMethodSymbolBase.MethodChecks(BindingDiagnosticBag diagnostics) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberMethodSymbol.LazyMethodChecks() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberMethodSymbol.get_OverriddenOrHiddenMembers() [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberContainerTypeSymbol.CheckMembersAgainstBaseType(BindingDiagnosticBag diagnostics, CancellationToken cancellationToken) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberContainerTypeSymbol.GetSynthesizedExplicitImplementations(CancellationToken cancellationToken) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberContainerTypeSymbol.ForceComplete(SourceLocation locationOpt, CancellationToken cancellationToken) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbol.ForceCompleteMemberByLocation(SourceLocation locationOpt, Symbol member, CancellationToken cancellationToken) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamespaceSymbol.<>c__DisplayClass49_1.<ForceComplete>b__0(Int32 i) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Roslyn.Utilities.UICultureUtilities.<>c__DisplayClass6_0`1.<WithCurrentUICulture>b__0(T param) [.../Sol-tmp6/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at Roslyn.Utilities.RoslynParallel.<>c__DisplayClass1_0.<For>g__errorHandlingBody|0(Int32 i) [.../Sol-tmp6/Sol.csproj]
, or
Microsoft (R) Build Engine version 16.10.0-preview-21181-07+073022eb4 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
Restored .../Sol-tmp8/Sol.csproj (in 280 ms).
You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object. [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : --- End of stack trace from previous location --- [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : --- End of stack trace from previous location --- [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state) [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi) [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[TState](ExecutionContext executionContext, Action`1 callback, TState& state) [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.QueueUserWorkItemCallback.Execute() [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.ThreadPoolWorkQueue.Dispatch() [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() [.../Sol-tmp8/Sol.csproj]
.../dotnet-sdk-6.0.100-preview.3.21202.5-osx-arm64/sdk/6.0.100-preview.3.21202.5/Roslyn/Microsoft.CSharp.Core.targets(71,5): error : at System.Threading.Thread.StartCallback() [.../Sol-tmp8/Sol.csproj]
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 43
- Comments: 28 (25 by maintainers)
Similar issues with NullReferenceException: https://github.com/dotnet/runtime/issues/48902, https://github.com/dotnet/runtime/issues/49088, https://github.com/dotnet/runtime/issues/49110, https://github.com/dotnet/runtime/issues/49365, https://github.com/dotnet/runtime/issues/50238, https://github.com/dotnet/runtime/issues/50769, https://github.com/dotnet/runtime/issues/51543, https://github.com/dotnet/runtime/issues/52095, https://github.com/dotnet/runtime/issues/52358, https://github.com/dotnet/runtime/issues/52529.
I ran this a few more times with preview3 and with the script modified as above.
I saw a total of 22 failures in 1026 publish runs.
The "Csc" task has not registered its resources. As @danmoseley notes this is dotnet/msbuild#6253. This might be obscuring another issue which triggered the failed log message.System.NullReferenceExceptionI guess I’ll try with a recent daily build with:
Maybe that will help root cause the issue
That stack above looks like https://github.com/dotnet/msbuild/issues/6253