Use generated version files when printing/tracing host version info#90273
Use generated version files when printing/tracing host version info#90273elinor-fung merged 3 commits intodotnet:mainfrom
Conversation
|
Tagging subscribers to this area: @agocke, @vitek-karas, @VSadov Issue DetailsSet Fixes #80961 There's more cleanup that can be done here (for example, we no longer need all the separate defines/versions for each host component - all the versions are the same), but this just fixes the immediate issue of single-file not having version/commit info at all.
|
|
runtime/src/native/corehost/common.cmake Line 23 in 41bc935 would be nice to generalize and reuse that global info instead of wiring up a new mechanism. e.g. diagnostics has mirrored All these seem very similar use-cases for which we can do something better, IMO. Currently, one limitation is imposed by arcade is that it only allows one version file per platform, so it is either _version.c (Unix) or _version.h (Windows): https://github.com/dotnet/arcade/blob/main/src/Microsoft.DotNet.Arcade.Sdk/tools/Version.targets., we can change it to emit both on all platforms. |
|
Thanks. Switched to using generated |
4c493f2 to
c9a9908
Compare
am11
left a comment
There was a problem hiding this comment.
Looks great!
These properties can also be cleaned up:
runtime/Directory.Build.targets
Lines 216 to 227 in 79b9707
|
I think the only things still using those are the host packages (which I opted not to touch in this change). Most of those can be removed (and the remaining one switched to just used the product version) when we get to #35244 |
Use generated version files when printing/tracing host version info.
VER_PRODUCTVERSION_STR/sccsidfrom generated_version.(h|c)for version and commit info (for tracing)RuntimeProductVersionfor version from header generated byGenerateRuntimeVersionFileHOST_*_PKG_VERdefines and script arguments for passing that info aroundFixes #80961
Host traces will have: