0

I am trying to add reference to ASP.NET Core Web Application from Class Library project (.NET Core) which will be my Unit Tests project.

I am getting error with default empty projects(File -> New Project): enter image description here

I have tried to downgrade Tests project to 1.4 with no success.

3
  • 1
    Try to change netstandard1.5 to netcoreapp1.0 in the test project's project.json. Commented Jun 22, 2016 at 13:29
  • Unit Test assemblies are applications, not class libraries. @ademcaglin: is right and netcoreapp1.0 should be used for unit and integration testing projects Commented Jun 22, 2016 at 13:44
  • @ademcaglin You are right this solve issue. If you want you can write answer so I can mark it that resolved issue. Commented Jun 22, 2016 at 14:01

1 Answer 1

5

netcoreapp is for applications(web, console and test), netstandard is for class library projects.

So, changing netstandard1.5 to netcoreapp1.0 in test project's project.json will solve your problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.