tag:help.appveyor.com,2012-11-13:/discussions/problems/2397-appveyoryml-validation-error-but-it-looks-validAppVeyor: Discussion 2018-10-19T08:17:17Ztag:help.appveyor.com,2012-11-13:Comment/372587642015-06-30T13:45:45Z2015-06-30T13:45:45ZAppVeyor.yml validation error ... but it looks valid?<div><p>I'm trying do set the version in my <code>appveyor.yml</code>
file, but fails validation</p>
<pre>
<code>version: {build}</code>
</pre>
<p>or a semver compliment one...<br></p>
<pre>
<code>version: {build}.0.0</code>
</pre>
<p>whenever the first valud of the version is <code>{build}</code>
it fails validation.</p>
<p>We do this for our development code. We don't care about sem
ver, for that <em>and</em> these are not nuget packages, but
websites.</p>
<p>BUT, when i set the value via the AV UI, it works fine.</p>
<p>Not sure if this is a bug in the validator?</p></div>Pure Krometag:help.appveyor.com,2012-11-13:Comment/372587642015-06-30T14:09:11Z2015-06-30T14:09:11ZAppVeyor.yml validation error ... but it looks valid?<div><p>It should be:</p>
<p>version: '{build}.0.0'</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/372587642015-07-05T01:00:03Z2015-07-05T01:00:39ZAppVeyor.yml validation error ... but it looks valid?<div><p>Ah! your answer was to use <code>single quotes</code> around the
value! ah! doh!!</p>
<p>is there any difference when i use <code>single quotes</code> vs
<code>double quotes</code>?</p>
<p>eg. i have this in my <code>appveyor.yml</code> file (can't
remember where I copied it from)..</p>
<pre>
<code class="assembly_info:"> patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
<pre><code>
notice how i'm using `double quotes` in this case? is there a difference?</code>
</pre></code>
</pre></div>Pure Krometag:help.appveyor.com,2012-11-13:Comment/372587642015-07-05T02:01:23Z2015-07-05T02:01:23ZAppVeyor.yml validation error ... but it looks valid?<div><p>Found this: <a href="http://stackoverflow.com/questions/19109912/do-i-need-quotes-for-strings-in-yaml">
http://stackoverflow.com/questions/19109912/do-i-need-quotes-for-st...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/372587642015-07-05T09:19:00Z2015-07-05T09:19:00ZAppVeyor.yml validation error ... but it looks valid?<div><p>AH! sweet. ta.</p>
<p>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).</p>
<p>cheers!! much appreciated :)</p></div>Pure Krome