question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run the tool in the 2.1.2 version (1 of 12 pipelines failed)

See original GitHub issue

After updating the cyclonedx-dotnet tool to V2.1.2 (from v1.6.4) in 1 of 12 pipeline it failed because of:

Unhandled exception. System.Collections.Generic.KeyNotFoundException: The given key 'xxx.xxx.xxx.xxx' was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at CycloneDX.Program.OnExecuteAsync()
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.InvokeAsync(MethodInfo method, Object instance, Object[] arguments)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.OnExecute(ConventionContext context, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<>c__DisplayClass0_0.<<Apply>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync[TApp](CommandLineContext context, CancellationToken cancellationToken)
   at CycloneDX.Program.Main(String[] args) in /home/runner/work/cyclonedx-dotnet/cyclonedx-dotnet/CycloneDX/Program.cs:line 110
   at CycloneDX.Program.<Main>(String[] args)

I have executed cyclonedx with following parameters:

dotnet dotnet-CycloneDX --exclude-test-projects --exclude-dev -o SBOM -biop D:\a\1\s/artifacts -imp cycloneDX-metadata.xml PM.BE.sln

Maybe it has something similar to #437

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
patspaethcommented, Oct 26, 2021

Yes, this is possible, thanks!

0reactions
patspaethcommented, Mar 28, 2022

Closed because issue was solved by removing a cyclic dependency of nuget packages

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run the tool in the 2.1.0 version · Issue #437
I've been using version 2.0.1 without any problem, but with the latest one, 2.1.0 I started to get this error Command ran dotnet-CycloneDX ......
Read more >
VS Test failing in Pipelines with missing 'Microsoft.NET. ...
I'm getting a failed builds due to the Visual Studio Test step failing in my Build Pipeline. I have a simple .NET Core...
Read more >
Has anyone been able to share a Web Tool to Portal...
The ultimate solution in ArcGIS Pro 2.1 was as follows: a. Run "Export Web Map" Tool. b. Share the results as a Web...
Read more >
An error occured while resolving packages
- While trying to open a moved project on another computer than the "origin computer" resulted in it not being able to update...
Read more >
Suddenly Jenkins shows many plugins are not loading all ...
Hi, Lastweek My jenkins went down. I have restarted the service then we logged in to Jenkins it shows many issues related to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found