Skip to content

Update versioning logic & move TelemetryInstrumentationKey to its own Constants file #4469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 10, 2025

Conversation

liliankasem
Copy link
Member

This PR introduces an AssembleyExtensions.cs file to help us get the CLI version. The InformationalVersion looks like this:

  • 4.0.10000-dev+67bd99a8ce2ec3cf833f25c039f60222caf44573 (64-bit)

And the GetCliVersion method allows us extract the first part if it i.e. 4.0.10000-dev

(Note: on release -dev or -ci will not be part of the CLI version)

Second, we convert constants to a partial class so that we can override the value of TelemetryInstrumentationKey as part of the build process.

@liliankasem liliankasem requested a review from a team as a code owner June 6, 2025 23:09
@liliankasem liliankasem merged commit 285ac8e into feature/build-project Jun 10, 2025
3 checks passed
@liliankasem liliankasem deleted the liliankasem/update-constants branch June 10, 2025 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants