Skip to content

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

Merged
liliankasem merged 2 commits intofeature/build-projectfrom
liliankasem/update-constants
Jun 10, 2025
Merged

Update versioning logic & move TelemetryInstrumentationKey to its own Constants file#4469
liliankasem merged 2 commits intofeature/build-projectfrom
liliankasem/update-constants

Conversation

@liliankasem
Copy link
Copy Markdown
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
liliankasem added a commit that referenced this pull request Jun 27, 2025
… Constants file (#4469)

* Update versioning logic & move TelemetryInstrumentationKey

* Use attribute approach for setting TelemetryInstrumentationKey
liliankasem added a commit that referenced this pull request Jul 2, 2025
… Constants file (#4469)

* Update versioning logic & move TelemetryInstrumentationKey

* Use attribute approach for setting TelemetryInstrumentationKey
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