Skip to content

Support for arbitrary value in AssemblyInformationalVersionAttribute #4822

Description

@tmat

The compiler reports a warning when the value of AssemblyInformationalVersionAttribute is not a valid version string.

.NET SDK 2.1.300-rc1-008673

Repro:

> dotnet new classlib --language F#

Set value in the project:

<InformationalVersion>1.0.0+a1686e12e2b5dbbf0773de915f8b6039041dd4c1</InformationalVersion>
> dotnet build
...
FSC : warning FS2003: An System.Reflection.AssemblyInformationalVersionAttribute specified version '1.0.0+a1686e12e2b5dbbf0773de915f8b6039041dd4c1', but this value is invalid and has been ignored 

The C# and VB compilers accept arbitrary values.

SourceLink package adds git commit sha to the version (format above).

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions