Skip to content

Unit testing example does not work in docker #828

Closed
@alexellis

Description

@alexellis

Issue Title

With this article:

https://github.com/dotnet/core-docs/blob/master/docs/core/testing/unit-testing-with-dotnet-test.md

General

I was able to set up a unit test project and have this restored/running on my Mac but when it came to using the Docker image for Preview 1 or 2 it failed.

Errors in /root/dn/test/project.json
    Unable to resolve 'RateCalc.Engine' for '.NETCoreApp,Version=v1.0'.

The code is available here:

https://github.com/alexellis/dncore-market-rates

I am a bit confused about these two lines in the unit test project:

      "imports": [
        "dotnet5.4",
        "portable-net451+win8"
      ]

The other projects created are using dncore 5.0 - does this mean we need Mono or a full .NET runtime in order to use xunit?

  1. Suggest reviewers
    • If you know someone who can provide feedback, use '@' to ask them to review.

@BillWagner / @ Steve Smith

I've also provided a Dockerfile.

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