© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
21 replies
Bill

Asssembly Version Wrong

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

    private string? GetVersion()
    {
        return typeof(Worker).Assembly
            .GetCustomAttribute<AssemblyInformationalVersionAttribute>()
            ?.InformationalVersion;
    }
    private string? GetVersion()
    {
        return typeof(Worker).Assembly
            .GetCustomAttribute<AssemblyInformationalVersionAttribute>()
            ?.InformationalVersion;
    }
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Multi-target, wrong version
C#CC# / help
3y ago
✅ Multi-targeting NetFx and NetCore - Targeting wrong version?
C#CC# / help
3y ago
✅wrong warning
C#CC# / help
17mo ago
✅ whats wrong
C#CC# / help
2y ago