Valid assembly info version

Junle Li's Avatar

Junle Li

14 Aug, 2015 03:07 PM

Hi,

I am going to following the semantics version 2.0.0 to leverage build metadata in assembly version. The build metadata part is appended with plus sign '+'. But, AppVeyor tells me such a version is invalid.

Any idea on it?

P.S. Both Nuget and Nuget.org support semantics version 2.0.0.

  1. Support Staff 1 Posted by Feodor Fitsner on 14 Aug, 2015 03:51 PM

    Feodor Fitsner's Avatar

    Such version format is allowed in AssemblyInformationalVersion attribute only, so it should be:

    assembly_info:
      patch: true
      file: AssemblyInfo.cs
      assembly_version: "{version}"
      assembly_file_version: "{version}"
      assembly_informational_version: "0.5.4+{build}"
    

    Otherwise it won't compile.

  2. 2 Posted by lijunle on 19 Aug, 2015 07:09 PM

    lijunle's Avatar

    Thank you, got it! I use another way to name my versions. ;)

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:59 AM.

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

Keyboard shortcuts

Generic

? 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