Skip to content

assembly-informational-format empty fallback string #1649

@savornicesei

Description

@savornicesei

Hi all,

In GitVersion.yml I have set
assembly-informational-format: 'Product_name {Major}.{Minor}.{Patch}.{env:INTEGRATOR ?? some_string }{Sha}'

In my scenario, I would like some_string to be empty if env:INTEGRATOR does not exist but it seems it's not parsed correctly. I have tried doubling the single quotes, with double quotes, ~, null but it still fails to parse it correctly.

This is how it looks if I pass double single quotes:
"InformationalVersion":"Product_name 1.2.0.{env:INTEGRATOR ?? '' }acb6133",

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions