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.