Skip to content
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

[Telemetry] Add RnwNewArch to MSBuildProperties #14208

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

danielayala94
Copy link
Contributor

@danielayala94 danielayala94 commented Dec 14, 2024

Description

Add RnwNewArch and UseFabric properties to MSBuildProperties, indicating if the project is using Paper or Fabric.

Type of Change

  • New feature (non-breaking change which adds functionality)

Why

By using telemetry data, we want to determine the adoption level of Fabric.

Resolves #14047

What

Included RnwNewArch and UseFabric in the properties written into msproperties.g.json (via OutputMSBuildProperties.targets), which are picked up by run-windows to pass all the properties as extraProps for telemetry logging.

Screenshots

image

Testing

Ran run-windows in a debugger and verified that RnwNewArch and UseFabric are written into msproperties.g.json and they are passed to Telemetry.trackCommandEvent().

Changelog

No

Microsoft Reviewers: Open in CodeFlow

@@ -18,7 +18,8 @@
"WindowsTargetPlatformVersion": "$(WindowsTargetPlatformVersion)",
"UseExperimentalNuGet": "$(UseExperimentalNuGet)",
"UseHermes": "$(UseHermes)",
"UseWinUI3": "$(UseWinUI3)"
"UseWinUI3": "$(UseWinUI3)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that I particularly like it, but you could include UseFabric in here just in case to catch edge cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What edge cases would be covered by including UseFabric that RnwNewArch would not?

@danielayala94 danielayala94 merged commit 1289e05 into microsoft:main Dec 17, 2024
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Assess and add missing telemetry fields
3 participants