issues with prevent-increment-of-merged-branch-version #4475
-
Prerequisites
GitVersion packageGitVersion.Portable GitVersion versionv6.1.0 Operating systemWindows What are you seeing?I get the following error:
with the following config file:
I have checked the breaking changes but couldn't find anything and the config pages suggests that this property exists and is used the right way? What is expected?That the configuration is able to be parsed. Steps to ReproduceRun git version with this GitVersion.yml RepositoryFixture TestNo response Output log or link to your CI build (if appropriate).INFO [25-04-01 14:34:07:01] Working directory: D:\hsm-cryptoserver
INFO [25-04-01 14:34:07:03] Project root is: D:\hsm-cryptoserver\
INFO [25-04-01 14:34:07:03] DotGit directory is: D:\hsm-cryptoserver\.git
INFO [25-04-01 14:34:07:03] Branch from build environment:
INFO [25-04-01 14:34:07:03] Found configuration file at 'D:\hsm-cryptoserver\GitVersion.yml'
INFO [25-04-01 14:34:07:05] -< Begin: Loading version variables from disk cache file D:\hsm-cryptoserver\.git\gitversion_cache\DFE9CB8D79ED5FA31B3C404587EA1FDE1E6CFDD8 >-
INFO [25-04-01 14:34:07:05] Cache file D:\hsm-cryptoserver\.git\gitversion_cache\DFE9CB8D79ED5FA31B3C404587EA1FDE1E6CFDD8 not found.
INFO [25-04-01 14:34:07:05] -< End: Loading version variables from disk cache file D:\hsm-cryptoserver\.git\gitversion_cache\DFE9CB8D79ED5FA31B3C404587EA1FDE1E6CFDD8 (Took: 0.92ms) >-
INFO [25-04-01 14:34:07:05] Found configuration file at 'D:\hsm-cryptoserver\GitVersion.yml'
WARN [25-04-01 14:34:07:16] An error occurred:
Could not build the configuration instance because following exception occurred: 'Property 'prevent-increment-of-merged-branch-version' not found on type 'GitVersion.Configuration.BranchConfiguration'.' Please ensure that the /overrideconfig parameters are correct and the configuration file is in the correct format.
INFO [25-04-01 14:34:06:97] Applicable build agent found: 'LocalBuild'.
INFO [25-04-01 14:34:07:01] Working directory: D:\hsm-cryptoserver
INFO [25-04-01 14:34:07:03] Project root is: D:\hsm-cryptoserver\
INFO [25-04-01 14:34:07:03] DotGit directory is: D:\hsm-cryptoserver\.git
INFO [25-04-01 14:34:07:03] Branch from build environment:
INFO [25-04-01 14:34:07:03] Found configuration file at 'D:\hsm-cryptoserver\GitVersion.yml'
INFO [25-04-01 14:34:07:05] -< Begin: Loading version variables from disk cache file D:\hsm-cryptoserver\.git\gitversion_cache\DFE9CB8D79ED5FA31B3C404587EA1FDE1E6CFDD8 >-
INFO [25-04-01 14:34:07:05] Cache file D:\hsm-cryptoserver\.git\gitversion_cache\DFE9CB8D79ED5FA31B3C404587EA1FDE1E6CFDD8 not found.
INFO [25-04-01 14:34:07:05] -< End: Loading version variables from disk cache file D:\hsm-cryptoserver\.git\gitversion_cache\DFE9CB8D79ED5FA31B3C404587EA1FDE1E6CFDD8 (Took: 0.92ms) >-
INFO [25-04-01 14:34:07:05] Found configuration file at 'D:\hsm-cryptoserver\GitVersion.yml'
WARN [25-04-01 14:34:07:16] An error occurred:
Could not build the configuration instance because following exception occurred: 'Property 'prevent-increment-of-merged-branch-version' not found on type 'GitVersion.Configuration.BranchConfiguration'.' Please ensure that the /overrideconfig parameters are correct and the configuration file is in the correct format. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please see https://gitversion.net/docs/reference/configuration. prevent-increment -> of-merged-branch-version |
Beta Was this translation helpful? Give feedback.
Please see https://gitversion.net/docs/reference/configuration. prevent-increment -> of-merged-branch-version