Skip to content

Fix global properties not propagating in new dotnet test for MTP #47464

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 1 commit into from
Mar 12, 2025

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Mar 11, 2025

Related to #45927

  • Adds CommonOptions.PropertiesOption (i.e, -p/--property/etc) as a command line option for the new dotnet test experience.
  • Capture those user-specified properties to BuildOptions
  • Ensure those properties propagate correctly and are taken into consideration in GetGlobalProperties
  • Cleanup GetPropertyTokens as it's now not "unmatched token".

@Copilot Copilot AI review requested due to automatic review settings March 11, 2025 18:01
@Youssef1313 Youssef1313 requested a review from a team as a code owner March 11, 2025 18:01
@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Mar 11, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

@Youssef1313 Youssef1313 force-pushed the dev/ygerges/fix-dotnet-test-global-prop branch from c6c6fb3 to 11b36ea Compare March 11, 2025 18:20
@Youssef1313 Youssef1313 force-pushed the dev/ygerges/fix-dotnet-test-global-prop branch from 11b36ea to 57c433c Compare March 11, 2025 19:14
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), testAsset.props))\testAsset.props" />

<PropertyGroup>
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Is it normal to have tabs?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

We should consider ensuring formatting is aligned with .editorconfig which seems to be using two spaces for csproj. cc @mariam-abdulla

@Youssef1313 Youssef1313 merged commit a439f46 into main Mar 12, 2025
39 checks passed
@Youssef1313 Youssef1313 deleted the dev/ygerges/fix-dotnet-test-global-prop branch March 12, 2025 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants