Skip to content

Benchmarkdotnet is setting application assembly version to default (1.0.0.0) replacing custom version in teamcity #2295

@kamruzzamantitu

Description

@kamruzzamantitu

We are running Benchmarkdotnet performance test as part of our unit test step after build step in teamcity. Our build step updates the assemblies with a custom version number (e.g 5.0.0.23). But interestingly once the unit test step runs, Benchmarkdotnet updates those assemblies to default version 1.0.0.0. If we run unit tests without Benchmarkdotnet, the original version stays. This is a weird issue and affecting our app health check as 1.0.0.0 is shown as the version number in health check endpoint.

As a workaround we are building the app once again after the unit test step. But I was looking for a better solution. Moreover it would be good to know why it's happening.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions