Skip to content

Use commit SHA as additional version fallback #2664

@jamescrosswell

Description

@jamescrosswell

// Note: even though the informational version could be "invalid" (e.g. string.Empty), it should
// be used for versioning and the software should not fallback to the assembly version string.
// See https://github.com/getsentry/sentry-dotnet/pull/1079#issuecomment-866992216
// TODO: Lets change this in a new major to return the Version as fallback
return assembly.GetName().Version?.ToString();

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions