microsoft / vstest

Visual Studio Test Platform is the runner and engine that powers test explorer and vstest.console.
MIT License
889 stars 320 forks source link

Microsoft.NET.Test.Sdk 17.10 breaks MSBuild isolation #5190

Open hotchkj opened 1 month ago

hotchkj commented 1 month ago

Description

Building any test project with Microsoft.NET.Test.Sdk 17.10.0 or 17.11.0 against MSBuild with the isolate flag on breaks the build. This suggests the package is doing something that it should not be in MSBuild tasks, since isolation is expected to succeed with 'normal' managed projects. This did not apply with 17.9 or earlier, thus appears to be a regression.

Steps to reproduce

Expected behavior

The build succeeds.

Actual behavior

The build fails with isolation errors, indicating that the global properties set for each project have been altered during the build.

Workaround

Revert to Microsoft.NET.Test.Sdk 17.9.0, or change to -isolateProjects:false, removing build isolation

Diagnostic logs

N/A - build issue not test issue.

Environment

Windows 10, MSBuild 17.10.4

nohwnd commented 1 month ago

Thanks for reporting, I will investigate.