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

VsTestToolsInstallerInstalledToolLocation: Path to CodeCoverage.exe may contain net462 instead of net451 #1357

Closed
martin-strecker-sonarsource opened this issue Nov 14, 2022 · 0 comments · Fixed by #1362
Assignees
Milestone

Comments

@martin-strecker-sonarsource
Copy link
Contributor

martin-strecker-sonarsource commented Nov 14, 2022

Reported by https://community.sonarsource.com/t/75717

If https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/VsTestPlatformToolInstallerV1 is used to install CodeCoverage.exe the VsTestToolsInstallerInstalledToolLocation environment variable is pointing to a directory containing all the test tools. We use this as a base path to find CodeCoverage.exe. We look at this position:

private const string VsTestToolPlatformInstallerPathToExe = @"tools\net451\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe";

According to https://community.sonarsource.com/t/75717/5 the path can also be @"\tools\net462\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe".

We need to do the lookup in that location too.

Background:
Packages are installed via https://www.nuget.org/packages/Microsoft.TestPlatform In version bump 17.3.2 -> 17.4.0 the path of the coverage tool changed.

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