New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled exception: System.ArgumentException: An item with the same key has already been added. #9495
Comments
I am experiencing the same error:
Full log
The related dependabot.yml: https://github.com/fuzzzerd/fmdata/blob/master/.github/dependabot.yml |
I started getting this exception as well:
And the worst part is that Dependabot still shows the execution as successful/green with the end of the log saying:
I think this is happening for me because I have a <ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.26" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0' ">
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.15" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.1" />
</ItemGroup> Here's the dependabot file and csproj files in question: DotNet.Sdk.Extensions.Testing.csproj and DotNet.Sdk.Extensions.Testing.Tests.csproj. I've also tried with having an ignore for the package like this: ignore:
# Ignored because the csproj using this NuGet supports multiple target frameworks and dependabot does not handle this well.
# This NuGet needs to be manually updated for each target framework
- dependency-name: "Microsoft.AspNetCore.Mvc.Testing" But I'm still getting the same error. |
Easier to consume log using the new actions support: logs |
Here is a more recent dependabot log showing the same error but using the new actions runners for my repo above: https://github.com/fuzzzerd/fmdata/actions/runs/8848899385/job/24299632274 |
|
Fixed in #9642. |
Is there an existing issue for this?
Package ecosystem
NuGet
Package manager version
No response
Language version
No response
Manifest location and content before the Dependabot update
martincostello/alexa-london-travel@1b47c2e
dependabot.yml content
dependabot.yml
Updated dependency
None
What you expected to see, versus what you actually saw
Dependencies should have been updated, but instead nothing is updated an an error is logged:
Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
No response
Smallest manifest that reproduces the issue
No response
The text was updated successfully, but these errors were encountered: