C#C
C#3y ago
Bill

Asssembly Version Wrong

It was working for a little bit, but now it's displaying v1.0.0-alpha+9fb67d6af368e6cd5a05c8f4013272d4a644ca89 instead of v1.0.0-alpha after adding user secrets.

    private string? GetVersion()
    {
        return typeof(Worker).Assembly
            .GetCustomAttribute<AssemblyInformationalVersionAttribute>()
            ?.InformationalVersion;
    }
Was this page helpful?