user7364287
user7364287

Reputation:

Add .NetCoreApp into .NetStandard

I want to add .NetCoreApp version = v1.0 into a .NetStandard version = v1.6 as reference. But when I try to do this then below error showing. I google for last 1 hour but not get any solution and still searching for proper solution.

enter image description here

Hope will get any idea. Thanks in advance.

Upvotes: 0

Views: 85

Answers (1)

Dmitry
Dmitry

Reputation: 16805

You can't.

Think .NET Standard is an interface, while .NET Core is class/implementation.

New interface (your project) can extends only interfaces (netstandard libraries can reference only other netstandard libraries), classes can extend both (your netcoreapp project can reference both netstandard and netcoreapp).

But you can't create an interface (netstandard lib) which extends class (uses netcoreapp app).

Upvotes: 3

Related Questions