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
Expected, by default only the attribute.
Actual, replace all attributes, resulting in manifest version that is not compliant.
Sanitize input or make instructions of use clear.
Used "" as "The version field to update"
End result was malformed CSPROJ where " < < version > > " tag was added. (spaces added for github)
Steps to reproduce the problem
Use "$(Build.BuildNumber)" as "Version Number", all versions changed to "1.1.20190116.11", broken build, due to assembly version being in wrong format.
Set "The version field to update" to " < version > ", broken build, " < < version > > " tag inserted.
Suggestion to fix:
Make the default behavior to only update the " < version > " field, not all fields, i.e. set the "The version field to update" value to "Version" by default.
Update instructions to make it clear that the "The version field to update" needs to be without < >, i.e. "version", not " < version > "
Add ability to specify multiple fields to update. I want to leave the assembly version alone, but update the < version > and < fileversion > fields. Allow input of e.g. "Version;FileVersion", to have both tags replaced.
(Had to add spaces around brackets else markdown styling obscures them)
The text was updated successfully, but these errors were encountered:
Thanks for the suggestions. I never like changing current default behavior as I don't know how it will effect people (unless I do a major version update, which I think is a bit much for this)
The second option is a good idea short term (a wiki change I have don't now, the readme will be update in a future release), with the third as a good enhancement.
Azure DevOps Extension you are using
Version .NET Core Assemblies
Where are you running it?
Azure DevOps
Version of Extension/Task
Public, 2.*
Expected behaviour and actual behaviour
Actual, replace all attributes, resulting in manifest version that is not compliant.
Used "" as "The version field to update"
End result was malformed CSPROJ where " < < version > > " tag was added. (spaces added for github)
Steps to reproduce the problem
Use "$(Build.BuildNumber)" as "Version Number", all versions changed to "1.1.20190116.11", broken build, due to assembly version being in wrong format.
Set "The version field to update" to " < version > ", broken build, " < < version > > " tag inserted.
Suggestion to fix:
(Had to add spaces around brackets else markdown styling obscures them)
The text was updated successfully, but these errors were encountered: