-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Can't opt out of VSTestUseMSBuildOutput in project file #39127
Comments
@nohwnd this might be a candidate for tracking as part of microsoft/vstest#4843. |
Thanks, that is good point, added to the known issues. |
After short analysis I don't think this will be possible to do entirely from project. We need to set nodereuse, and env variables that tell msbuild if it should run with legacy settings and disable terminal logger, and so setting it in project is too late. But I will discuss with the team. |
Can |
Thanks. This would help override the value in the project, but would not disable the new experience entirely. In hind-sight the overall switch should not have been a property. It is giving off the wrong semantics, I think. We are doing global setup long before msbuild parses the properties, and so overriding the property can disable one aspect of the run, but it won't re-enable nodereuse:false, and it won't set the environment variable that msbuild uses to disable terminal logger and all the connected machinery. |
Run
dotnet test
on a project that has the following property set:This still uses the MSBuild terminal logger output for VSTest (which is broken in preview 1).
Further technical details
I believe the reason for this is that
dotnet test
passes--property:VsTestUseMSBuildOutput=true
by default atsdk/src/Cli/dotnet/commands/dotnet-test/Program.cs
Line 72 in 20659d1
This global property setting overrides anything in the project file. I think
dotnet test
should not be passing this; instead, the default better belongs in the MSBuild logic owned by VSTest.The text was updated successfully, but these errors were encountered: