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

Microsoft.Testing.Platform.MSBuild.CustomTestTarget.targets shouldn't be imported if MTP not enabled #5271

Closed
Youssef1313 opened this issue Mar 20, 2025 · 0 comments

Comments

@Youssef1313
Copy link
Member

If MTP isn't opted-in, Microsoft.Testing.Platform.MSBuild.CustomTestTarget.targets shouldn't be imported.

A user defining Test target for all their projects via props will break when we import our CustomTestTarget. The target has a condition that will evaluate to false, then MSBuild will complain:

error MSB4057: The target "Test" does not exist in the project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant