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:
- Go to
./Solutions/Tanium
- Update the file
./Data/Solution_Tanium.json and set the version to 3.3.0
- Build the solution by running
Tools/Create-Azure-Sentinel-Solution/V3/createSolutionV3.ps1
- 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