You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running nbgv cloud command firstly on root, then in project, desired (target) behavior would be as following
in root - buildNumber.enabled is set to true, so buildNumber is set to 1.3.x
in project - buildNumber.enabled is set to false, so buildNumber remains as 1.3.x
But actual behavior is that:
BuildNumber is set to 1.3.x
BuildNumber is set once again to 1.1.x (override)
Even if buildNumber.enabled=false is set in root version.json, and in all projects, it`s still overriding buildNumber in each step ( each run of nbgv cloud command).
Tried:
setting cloudBuild.buildNumber.enabled = false in root, inherit file in project and set to true
setting cloudBuild.buildNumber.enabled = false in each version.json file
But it looks like it`s just ignoring this property.
The text was updated successfully, but these errors were encountered:
The nbgv cloud command is used explicitly to set the cloud build number. See its usage doc:
❯ nbgv cloud -h
cloud:
Communicates with the ambient cloud build to set the build number and/or other cloud build variables.
The cloudBuild.buildNumber.enabled setting doesn't disable this command. Rather, it influences whether msbuild building of that project will set the build number when it computes the version for that project.
I've just stumbled across the same problem. I just need the variables set by the tool but not the build number.
The help text of the cloud command is a little bit misleading there because it says 'and/or' and therefore implicating I could choose between both options.
Since I only need three variables I'm gonna extract them from the get-version command output
Environment:
Having version.json defined in a repository root:
And, for example, one of the version.json in a project under root folder:
After running nbgv cloud command firstly on root, then in project, desired (target) behavior would be as following
But actual behavior is that:
Even if buildNumber.enabled=false is set in root version.json, and in all projects, it`s still overriding buildNumber in each step ( each run of nbgv cloud command).
Tried:
But it looks like it`s just ignoring this property.
The text was updated successfully, but these errors were encountered: