WaelHamze / dyn365-ce-vsts-tasks

VSTS Extension for Dynamics 365 Customer Engagement
https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
GNU General Public License v3.0
115 stars 54 forks source link

Set version task throwing invalid format error #231

Closed mrsdotnet closed 2 years ago

mrsdotnet commented 3 years ago

I am setting the Version as 1.2.0$(Rev:.r) expecting this will increment the revision number by 1 for CRM solution. However I get the below error on running the build pipeline: The version is in an invalid format. Version: 1.2.0$(Rev:.r)

Is this the correct way of using?

mattp65 commented 3 years ago

That format works in the Options for the pipeline itself, but not in 1 of the steps. There are varaiable available to get the generated Build Number to pass into the action, but the action expects a properly formatted Build ID to be passed in. Personally, I extract the value with a PowerShell action from the BUILD_BUILDNUMBER env variable.

WaelHamze commented 2 years ago

@mattp65 thanks