Skip to content

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Aug 26, 2025

Fixes #50054

Added a directory creation step to prevent dotnet.config from affecting other tests.
@Youssef1313 Youssef1313 marked this pull request as ready for review August 26, 2025 15:58
@Youssef1313 Youssef1313 requested a review from a team as a code owner August 26, 2025 15:58
@Youssef1313 Youssef1313 linked an issue Aug 27, 2025 that may be closed by this pull request
@Youssef1313 Youssef1313 merged commit dd04ba3 into release/10.0.1xx Aug 27, 2025
29 checks passed
@Youssef1313 Youssef1313 deleted the dev/ygerges/update-mstest-templates branch August 27, 2025 13:15
@bradwilson
Copy link
Contributor

@Youssef1313 I assume "actionId": "597E7933-0D87-452C-B094-8FA0EEF7FD97", is only available when using .NET 10 SDK. Can this be used from templates that might be used with older versions of .NET SDK, without generating errors? Or, better yet, is it possible for a project template to know what version of .NET SDK it's being invoked with to make this step conditional based on being run with .NET 10 SDK?

@bradwilson
Copy link
Contributor

Also, was this project template action already shipped in .NET 10 SDK Preview 7, or will it be forthcoming in a future .NET 10 SDK Preview?

@bradwilson
Copy link
Contributor

Just verified that this is not in preview 7:

The post action 597e7933-0d87-452c-b094-8fa0eef7fd97 is not supported.
Description: Create or update 'dotnet.config' file required by Microsoft.Testing.Platform.
Manual instructions: Manually create 'dotnet.config' file setting the test runner to Microsoft.Testing.Platform

@Youssef1313
Copy link
Member Author

Yup, not available in preview 7 and won't be available in RC1 unfortunately. It will be in RC2 only 😢

Can this be used from templates that might be used with older versions of .NET SDK, without generating errors?

The only thing I can think of is "continue on error". So the message saying that the post action is not supported will be printed, followed by the description and manual instructions that are present in templates.

@bradwilson
Copy link
Contributor

At the moment, I'm gating it on the user choosing net10.0 for their framework. It's not perfect, but it's as good as I can get without knowing what version of the SDK the user is currently using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

What to do with MSTest MTP test templates in .NET 10?

3 participants