AppVeyor.yml validation error ... but it looks valid?

Pure Krome's Avatar

Pure Krome

30 Jun, 2015 01:45 PM

I'm trying do set the version in my appveyor.yml file, but fails validation

version: {build}

or a semver compliment one...

version: {build}.0.0

whenever the first valud of the version is {build} it fails validation.

We do this for our development code. We don't care about sem ver, for that and these are not nuget packages, but websites.

BUT, when i set the value via the AV UI, it works fine.

Not sure if this is a bug in the validator?

  1. Support Staff 1 Posted by Feodor Fitsner on 30 Jun, 2015 02:09 PM

    Feodor Fitsner's Avatar

    It should be:

    version: '{build}.0.0'

    - Feodor

  2. 2 Posted by Pure Krome on 05 Jul, 2015 01:00 AM

    Pure Krome's Avatar

    Ah! your answer was to use single quotes around the value! ah! doh!!

    is there any difference when i use single quotes vs double quotes?

    eg. i have this in my appveyor.yml file (can't remember where I copied it from)..

      patch: true
      file: AssemblyInfo.*
      assembly_version: "{version}"
      assembly_file_version: "{version}"
      assembly_informational_version: "{version}"
    notice how i'm using `double quotes` in this case? is there a difference?</code>
  3. Support Staff 3 Posted by Feodor Fitsner on 05 Jul, 2015 02:01 AM

    Feodor Fitsner's Avatar
  4. 4 Posted by Pure Krome on 05 Jul, 2015 09:19 AM

    Pure Krome's Avatar

    AH! sweet. ta.

    i thought your yaml parser might have been custom --- but based on you linking to that SO post, i can use either (and also, why use either/or).

    cheers!! much appreciated :)

  5. Pure Krome closed this discussion on 05 Jul, 2015 09:19 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac