Skip to content

Packaging mstest for .net core #10

Closed

Description

@codito

Description

In .net core, the dependencies are resolved from deps.json. The adapter must be referenced from a test project such that the MSTest.TestAdapter.dll is located by the test platform.

Currently, the nuget package ships with props files which copy the test adapter to output directories. It is not supported in .net core (see #6). What is the way forward?

  • Ship different nuget package for each runtime
  • Ship single nuget package, let the adapter be resolved from the corresponding runtime directory e.g. netcoreapp1.0 for .net core.

Thoughts?

Activity

  1. codito commented on Sep 14, 2016

    @codito
    ContributorAuthor
  2. AbhitejJohn commented on Sep 28, 2016

    @AbhitejJohn
    Contributor

    We planned to go with option 2 - Ship a single nuget package with a netcoreapp1.0 folder. We did not want to have multiple adapters for each platform. One drawback however with this approach is that the test platform attempts to load adapters for all desktop and dotnet even though it can load only one based on the host. The desktop workflow is still the same. We only have a lib for netcoreapp1.0.

    The adapter having this fix is MSTest.TestAdapter 1.1.2.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions