tag:help.appveyor.com,2012-11-13:/discussions/problems/332-assemblyinfofs
AppVeyor: Discussion
2018-10-19T08:16:33Z
tag:help.appveyor.com,2012-11-13:Comment/33102662
2014-05-23T15:33:43Z
2014-05-23T15:33:43Z
AssemblyInfo.fs
<div><p>Could you please drop me an example of AssemblyInfo.fs?</p>
<ul>
<li>Feodor</li>
</ul></div>
Feodor Fitsner
tag:help.appveyor.com,2012-11-13:Comment/33102662
2014-05-23T15:47:46Z
2014-05-23T15:47:46Z
AssemblyInfo.fs
<div><p>See attached</p></div>
Jon
tag:help.appveyor.com,2012-11-13:Comment/33102662
2014-05-23T16:38:44Z
2014-05-23T16:38:44Z
AssemblyInfo.fs
<div><p>Thanks!</p></div>
Feodor Fitsner
tag:help.appveyor.com,2012-11-13:Comment/33102662
2014-05-23T16:51:18Z
2014-05-23T16:51:18Z
AssemblyInfo.fs
<div><p>OK, I see. AppVeyor recognizes attributes in the form
<code>[<assembly: AssemblyVersion("1.0.0.0")>]</code> (with
<code>assembly:</code> prefix), so if you change your
AssemblyInfo.fs like below it will be automatically patched:</p>
<pre>
<code>[<assembly: AssemblyTitle("")>]
[<assembly: AssemblyDescription("")>]
[<assembly: AssemblyConfiguration("")>]
[<assembly: AssemblyCompany("")>]
[<assembly: AssemblyProduct("")>]
[<assembly: AssemblyCopyright("Copyright © 2014")>]
[<assembly: AssemblyTrademark("")>]
[<assembly: AssemblyCulture("")>]
[<assembly: ComVisible(false)>]
[<assembly: Guid("47944d69-b687-48a1-bdad-e5a2573d10ed")>]
[<assembly: AssemblyVersion("1.0.0.0")>]
[<assembly: AssemblyFileVersion("1.0.0.0")>]</code>
</pre></div>
Feodor Fitsner
tag:help.appveyor.com,2012-11-13:Comment/33102662
2014-05-23T17:52:52Z
2014-05-23T17:52:52Z
AssemblyInfo.fs
<div><p>That works, brilliant.</p>
<p>Is this the only way to align the package version with the build
version? Can you specify in the yml that Version should be set on
nuget pack?</p></div>
Jon
tag:help.appveyor.com,2012-11-13:Comment/33102662
2014-05-23T18:03:27Z
2014-05-23T18:03:40Z
AssemblyInfo.fs
<div><p>I far as I understand there are three ways of setting nuget
package version:</p>
<p>1) through assembly - when you build package from VS project
(<code>nuget pack some.csproj</code>) it replaces
<code>$version$</code> from output assembly.</p>
<p>2) specifying version in command line: <code>nuget pack
foo.nuspec -Version 2.1.0</code>. You can use
<code>APPVEYOR_BUILD_VERSION</code> environment variable here
(<a href=
"http://www.appveyor.com/docs/environment-variables">http://www.appveyor.com/docs/environment-variables</a>)</p>
<p>3) patch .nuspec file with required information. This is not
something currently supported by AppVeyor, but might be a good todo
item.</p></div>
Feodor Fitsner
tag:help.appveyor.com,2012-11-13:Comment/33102662
2014-05-23T18:11:22Z
2014-05-23T18:11:22Z
AssemblyInfo.fs
<div><p>Thanks Feodor</p></div>
Jon