Skip to content

VB unit test project templates that ship in VS 2017 do not reference MSTest V2 nuget packages #132

Closed

Description

From @shyamnamboodiripad, microsoft/vstest#673

Description

Live Unit testing does not work out of the box for VB unit test projects created using VS 2017

Steps to reproduce

  1. Create a new VB Unit Test Project in VS 2017 -
    image
  2. Build the project
  3. Turn on LUT (Test -> Live Unit Testing -> Start)

Expected behavior

LUT is turned on

Actual behavior

[14:16:35.202 Error] No test adapters are referenced by this solution. If you have a test project, add a NuGet reference to a test adapter corresponding to the test framework used in order to run the tests. If you already have the required NuGet reference in your test project, performing a NuGet restore may resolve the issue.
[14:16:35.202 Info] Start failed.
[14:16:35.264 Info] Live Unit Testing stopped.

Looks like VB project template for Unit Test Project is still adding a reference to the old 'MS.VS.QualityTools.UnitTestFramework.dll' instead of 'MS.VS.TestPlatform.TestFramework' nuget packages. Corresponding C# project template references the correct version.

image

Referencing the same nuget packages in the created VB project fixes the issue.

Environment

VS 2017 Enterprise
image

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions