Skip to content

dotnet test for MTP #49647

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

dotnet test for MTP #49647

wants to merge 2 commits into from

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Jul 3, 2025

cc @KirillOsenkov as FYI, or if you have any comments. This is still very far from being completed.


<Target Name="_MTPBuild" DependsOnTargets="_ComputeTargetFrameworkItems">
<!-- This target is called by dotnet test for MTP for projects that are multi-targeted (using multiple target frameworks) -->
<Target Name="_MTPTest">
Copy link
Member Author

Choose a reason for hiding this comment

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

NOTE: We should be careful to not regress TestTfmsInParallel. So maybe this outer _MTPTest target should also communicate back the TestTfmsInParallel value to the logger.

@@ -17,7 +17,10 @@ Copyright (c) .NET Foundation. All rights reserved.
<VSTestTargets Condition="'$(VSTestTargets)'==''">$(MSBuildExtensionsPath)\Microsoft.TestPlatform.targets</VSTestTargets>
</PropertyGroup>
<Import Condition="Exists('$(VSTestTargets)')" Project="$(VSTestTargets)" />
<Target Name="_MTPBuild">
<CallTarget Targets="Build" />
<Target Name="_MTPTest" DependsOnTargets="ComputeRunArguments" Returns="@(_MTPTestInformation)">
Copy link
Member Author

Choose a reason for hiding this comment

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

This target should do <CallTarget Targets="Build" Condition="'$(MTPNoBuild)'!='true'" />

Comment on lines +106 to +107
<InnerTargets Condition="'$(MTPNoBuild)'!='true'">Build;_MTPTest</InnerTargets>
<InnerTargets Condition="'$(MTPNoBuild)'=='true'">_MTPTest</InnerTargets>
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: this doesn't really work because CallTarget below is executed in a different scope and can't see the values set here.

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.

1 participant