vswhere: VSTest instructions do not work for VS Test Agent 2017

We have the VS2017 build tools and test agent (15.5.3) installed on a build server rather than full VS.

The -requires string Microsoft.VisualStudio.PackageGroup.TestTools.Core (which the wiki recommends) works for full VS but apparently not for VS Test Agent.

vstest.console.exe is clearly present at both C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent\Common7\IDE\CommonExtensions\Microsoft\TestWindow and C:\Program Files (x86)\Microsoft Visual Studio\2017\TestAgent\Common7\IDE\Extensions\TestPlatform.

Removing the -requires and running vswhere -latest -products * -property installationPath works great, but I’d rather there wasn’t the possibility of it resolving to an installation that was lacking VSTest. How can I determine which -requires string to use for the test agent installation?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (6 by maintainers)

Commits related to this issue

Most upvoted comments

I’ve passed this feedback along. For now, yes, do what works best for your scenario. This is unfortunate, but many package IDs changes with far more frequency. That doesn’t mean they all do.