The "ResolvePackageDependencies" task failed unexpectedly - An item with the same key has already been added #9818
Labels
Area:RestoreRepeatableBuild
The lock file features
Functionality:VisualStudioUI
Partner:MSBuild
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Resolution:External
This issue appears to be External to nuget
Type:Bug
WaitingForCustomer
Applied when a NuGet triage person needs more info from the OP
Error MSB4018 The "ResolvePackageDependencies" task failed unexpectedly.
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary
2.Insert(TKey key, TValue value, Boolean add) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable
1 source, Func2 keySelector, Func
2 elementSelector, IEqualityComparer`1 comparer)at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.GetPackageAndFileDependencies(LockFileTarget target)
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.RaiseLockFileTargets()
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ExecuteCore()
at Microsoft.NET.Build.Tasks.TaskBase.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()
Details about Problem
VS UI
Detailed repro steps so we can see the same problem
I have a complex Solution. This error I get after some Nuget Updates during build.
How can I find out wich Nuget is causing the issue and why?
The text was updated successfully, but these errors were encountered: