NuGet.RestoreEx.targets(19,5): error : Object reference not set to an instance of an object. [/Users/runner/work/1/s/Build.proj] #3972
Open
Description
Build
https://dev.azure.com/dnceng/internal/_build/results?buildId=2529303
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : Object reference not set to an instance of an object. [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.NoAllocEnumerateExtensions.OptimisticallyNonAllocatingEnumerable`1.Enumerator..ctor(IEnumerable`1 source) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Commands.PackageSpecificWarningProperties.AddRangeOfCodes(IEnumerable`1 codes, String libraryId, NuGetFramework framework) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Commands.PackageSpecificWarningProperties.CreatePackageSpecificWarningProperties(PackageSpec packageSpec) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Commands.RestoreCommand..ctor(RestoreRequest request) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Commands.RestoreRunner.ExecuteAsync(RestoreSummaryRequest summaryRequest, CancellationToken token) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Commands.RestoreRunner.ExecuteAndCommitAsync(RestoreSummaryRequest summaryRequest, IRestoreProgressReporter progressReporter, CancellationToken token) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Commands.RestoreRunner.CompleteTaskAsync(List`1 restoreTasks) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Commands.RestoreRunner.RunAsync(IEnumerable`1 restoreRequests, RestoreArgs restoreArgs, CancellationToken token) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Commands.RestoreRunner.RunAsync(RestoreArgs restoreContext, CancellationToken token) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Build.Tasks.BuildTasksUtility.RestoreAsync(DependencyGraphSpec dependencyGraphSpec, Boolean interactive, Boolean recursive, Boolean noCache, Boolean ignoreFailedSources, Boolean disableParallel, Boolean force, Boolean forceEvaluate, Boolean hideWarningsAndErrors, Boolean restorePC, Boolean cleanupAssetsForUnsupportedProjects, ILogger log, CancellationToken cancellationToken) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.RestoreAsync(String entryProjectFilePath, IDictionary`2 globalProperties, IReadOnlyDictionary`2 options) [/Users/runner/work/1/s/Build.proj]
##[error].dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : (NETCORE_ENGINEERING_TELEMETRY=Restore) Object reference not set to an instance of an object.
and
https://dev.azure.com/dnceng/internal/_build/results?buildId=2531711
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : Object reference not set to an instance of an object. [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.LibraryModel.FrameworkDependency.GetHashCode() [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at System.Collections.Generic.HashSet`1.AddIfNotPresent(T value, Int32& location) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at System.Collections.Generic.HashSet`1.System.Collections.Generic.ICollection<T>.Add(T item) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Packaging.CollectionExtensions.AddRange[T](ICollection`1 collection, IEnumerable`1 items) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.GetTargetFrameworkInfos(IReadOnlyDictionary`2 projectInnerNodes, Boolean isCpvmEnabled) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.GetProjectRestoreMetadataAndTargetFrameworkInformation(IMSBuildProject project, IReadOnlyDictionary`2 projectsByTargetFramework, ISettings settings) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.GetPackageSpec(IMSBuildProject project, IReadOnlyDictionary`2 allInnerNodes) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.<>c__DisplayClass35_0.<GetDependencyGraphSpec>b__0(ProjectWithInnerNodes project) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : --- End of stack trace from previous location --- [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at System.Threading.Tasks.TaskReplicator.Replica.Execute() [/Users/runner/work/1/s/Build.proj]
##[error].dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : (NETCORE_ENGINEERING_TELEMETRY=Restore) Object reference not set to an instance of an object.
at NuGet.LibraryModel.FrameworkDependency.GetHashCode()
at System.Collections.Generic.HashSet`1.AddIfNotPresent(T value, Int32& location)
at System.Collections.Generic.HashSet`1.System.Collections.Generic.ICollection<T>.Add(T item)
at NuGet.Packaging.CollectionExtensions.AddRange[T](ICollection`1 collection, IEnumerable`1 items)
at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.GetTargetFrameworkInfos(IReadOnlyDictionary`2 projectInnerNodes, Boolean isCpvmEnabled)
at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.GetProjectRestoreMetadataAndTargetFrameworkInformation(IMSBuildProject project, IReadOnlyDictionary`2 projectsByTargetFramework, ISettings settings)
at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.GetPackageSpec(IMSBuildProject project, IReadOnlyDictionary`2 allInnerNodes)
at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.<>c__DisplayClass35_0.<GetDependencyGraphSpec>b__0(ProjectWithInnerNodes project)
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()
and
https://dev.azure.com/dnceng/internal/_build/results?buildId=2532631
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : Delegate to an instance method cannot have null 'this'. [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at System.MulticastDelegate.ThrowNullThisInDelegateToInstance() [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at System.MulticastDelegate.CtorClosed(Object target, IntPtr methodPtr) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Frameworks.NuGetFramework.GetParts(String targetPlatformMoniker) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Frameworks.NuGetFramework.ParseComponents(String targetFrameworkMoniker, String targetPlatformMoniker, IFrameworkNameProvider mappings) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Frameworks.NuGetFramework.ParseComponents(String targetFrameworkMoniker, String targetPlatformMoniker) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Commands.MSBuildProjectFrameworkUtility.GetProjectFramework(String projectFilePath, String targetFrameworkMoniker, String targetPlatformMoniker, String targetPlatformIdentifier, String targetPlatformVersion, String targetPlatformMinVersion, String clrSupport, String windowsTargetPlatformMinVersion, Boolean isXnaWindowsPhoneProject, Boolean isManagementPackProject) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Commands.MSBuildProjectFrameworkUtility.GetProjectFramework(String projectFilePath, String targetFrameworkMoniker, String targetPlatformMoniker, String targetPlatformMinVersion, String clrSupport, String windowsTargetPlatformMinVersion) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.GetTargetFrameworkInfos(IReadOnlyDictionary`2 projectInnerNodes, Boolean isCpvmEnabled) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.GetProjectRestoreMetadataAndTargetFrameworkInformation(IMSBuildProject project, IReadOnlyDictionary`2 projectsByTargetFramework, ISettings settings) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.GetPackageSpec(IMSBuildProject project, IReadOnlyDictionary`2 allInnerNodes) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at NuGet.Build.Tasks.Console.MSBuildStaticGraphRestore.<>c__DisplayClass35_0.<GetDependencyGraphSpec>b__0(ProjectWithInnerNodes project) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : --- End of stack trace from previous location --- [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) [/Users/runner/work/1/s/Build.proj]
/Users/runner/work/1/s/.dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : at System.Threading.Tasks.TaskReplicator.Replica.Execute() [/Users/runner/work/1/s/Build.proj]
##[error].dotnet/sdk/9.0.100-preview.7.24407.12/NuGet.RestoreEx.targets(19,5): error : (NETCORE_ENGINEERING_TELEMETRY=Restore) Delegate to an instance method cannot have null 'this'.
Build leg reported
No response
Pull Request
No response
Known issue core information
Fill out the known issue JSON section by following the step by step documentation on how to create a known issue
{
"ErrorMessage" : "",
"BuildRetry": false,
"ErrorPattern": "NuGet.RestoreEx.targets\(.*\): error ",
"ExcludeConsoleLog": false
}
@dotnet/dnceng
Release Note Category
- Feature changes/additions
- Bug fixes
- Internal Infrastructure Improvements
Release Note Description
Additional information about the issue reported
No response
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng/internal/_build/results?buildId=2529303
Error message validated: [NuGet.NoAllocEnumerateExtensions.OptimisticallyNonAllocatingEnumerable
]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 9/4/2024 4:16:56 PM UTC
Report
Summary
24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
---|---|---|
0 | 0 | 0 |
Known Issue Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "",
"ErrorPattern": "NuGet.RestoreEx.targets\(.*\): error ",
"BuildRetry": false,
"ExcludeConsoleLog": false
}