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.

Incorrect Version getting added in bom.xml

See original GitHub issue

Hi Team,

I am using “dotnet-CycloneDX” package for creating bom.xml from .sln file. But as per my observation it is adding incorrect version in bom.xml. For example the .csproj file contains following entry:

<PackageReference Include="WebGrease" version="1.6.0" />

In above it is clear that the version of WebGrease is 1.6.0 but if we check the bom.xml it shows version 1.5.2 as follows:

    <component type="library">
      <name>WebGrease</name>
      <version>1.5.2</version>
      <description><![CDATA[Web Grease is a suite of tools for optimizing javascript, css files and images.]]></description>
      <licenses>
        <license>
          <url>http://www.microsoft.com/web/webpi/eula/msn_webgrease_eula.htm</url>
        </license>
      </licenses>
      <purl>pkg:nuget/WebGrease@1.5.2</purl>
    </component>

Also I have observed that it includes version of library which is not present either in .csproj or packages.config file.

For example: packages.config file contains: <package id="WebGrease" version="1.6.0" targetFramework="net45" />

but bom.xml file contains 2 entries for WebGrease one 1.6.0 and other with version 1.5.2 as shown below:

    <component type="library">
      <name>WebGrease</name>
      <version>1.5.2</version>
      <description><![CDATA[Web Grease is a suite of tools for optimizing javascript, css files and images.]]></description>
      <licenses>
        <license>
          <url>http://www.microsoft.com/web/webpi/eula/msn_webgrease_eula.htm</url>
        </license>
      </licenses>
      <purl>pkg:nuget/WebGrease@1.5.2</purl>
    </component>

    <component type="library">
      <name>WebGrease</name>
      <version>1.6.0</version>
      <description><![CDATA[Web Grease is a suite of tools for optimizing javascript, css files and images.]]></description>
      <licenses>
        <license>
          <url>http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm</url>
        </license>
      </licenses>
      <purl>pkg:nuget/WebGrease@1.6.0</purl>
      <externalReferences>
        <reference type="website">
          <url>http://webgrease.codeplex.com/</url>
        </reference>
      </externalReferences>
    </component>

Could you please take a look into it and let me know if I am missing something?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sitrajcommented, Feb 12, 2020

@coderpatros Sure will check and let you know. Thank you for update

0reactions
coderpatroscommented, Mar 6, 2020

@shounakitraj going to close this issue. Feel free to re-open it if you are still getting incorrect versions in your bom.xml with the latest version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing version when using bom - maven
I'm trying to create a multi module Maven Spring project: Parent |-Bom |-Customers |- Customers-main |- Customers-client |- other modules... The ...
Read more >
How to Resolve a Version Collision of Artifacts in Maven
Understanding the Default Behavior. Let's start by adding the dependencyConvergence rule to maven-enforcer-plugin within the project's pom.xml:
Read more >
Overriding Dependency Versions with Spring Boot
This article explains some of the dependency management tricks that can be used to create libraries and apps that depend on newer versions...
Read more >
"Error 1405 Item version identified incorrectly..." when ...
Issue: In Vault Explorer, when executing item / BOM (Bill of Materials) related actions (for example, selecting the BOM tab in the item ......
Read more >
Ranorex Studio needlessly modifies XML files (UTF-8 BOM)
Here's my version control setup: Using TortoiseSVN, whenever I add new .rx* files to the SVN repo, I only add the xml file...
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