Skip to content

Versioning of Solutions is not working as expected when incrementing minor version #13730

@Tanium-Nicole

Description

@Tanium-Nicole

Describe the bug

When building a solution using the v3 build scripts in this repository, incrementing the minor version is ignored and instead it builds a patch increment of the existing published version.

EXAMPLE:

  • Default Version: 3.0.0
  • Currently Published Version: 3.2.0
  • Version specified in Solution Metadata: 3.3.0
  • Version produced by Scipts: 3.2.1
  • Expected Version: 3.3.0

To Reproduce

Steps to reproduce the behavior:

  1. Go to ./Solutions/Tanium
  2. Update the file ./Data/Solution_Tanium.json and set the version to 3.3.0
  3. Build the solution by running Tools/Create-Azure-Sentinel-Solution/V3/createSolutionV3.ps1
  4. See that version 3.2.1 was built instead

Expected behavior

It should see that the specified version (3.3.0 in this case) is greater than 3.0.0 and use the input version, it should NOT increment the published version as a patch.

The logic in the script is not correctly comparing the versions.

How to Fix

See the PR I just submitted to correct this #13731

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions