Skip to content

Set OutputType to Exe for xunit.v3, MSTest+MTP, and NUnit+MTP #15869

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

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

Conversation

Youssef1313
Copy link
Member

@ViktorHofer I'm trying to experiment if this can reduce the noise when migrating repos.

I chose to do it in BeforeNETSdkTargets so that:

  1. It's not too early in a way that UseMSTestRunner, UseNUnitRunner, or TestRunnerName are not set yet.
  2. It's not too late that Sdk could already have done something based on OutputType. Note that Microsoft.NET.Test.Sdk (vstest) tries to set OutputType too late (NuGet targets), and is already too fragile and causes issues in certain cases that I can't recall for now.

An alternative is to do this in Tests.props, but that requires repos to set UseMSTestRunner, UseNUnitRunner, or TestRunnerName before Arcade Sdk.props is imported. I tried to do it at the latest possible point.

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.

2 participants