question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Referencing netcoreapp in a netstandard project

See original GitHub issue

From @aateeque on August 17, 2017 19:43

Hi I am porting over a net452 & asp.net app over to netstandard & dotnet core. I have a situation where I need to refence my asp dotnet core app which is <TargetFramework>netcoreapp2.0</TargetFramework> in my testing project which is <TargetFramework>netstandard2.0</TargetFramework>. When I do a ProjectReference I get:

Project XXX is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Project XXX supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)

Is this sort of thing possible (don’t see why not?)

Copied from original issue: dotnet/project-system#2721

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
nguerreracommented, Aug 18, 2017

Yes, they should target netcoreapp too. I think I understand the confusion. You can have libraries that target netcoreapp, not just applications. The ‘app’ in the name is misleading.

0reactions
aateequecommented, Aug 18, 2017

@nguerrera spot on!! It is that netcoreapp bit which led to confusion. Thanks!!! One more thing, can WPF csproj files be converted to the new csproj format?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Referencing a .Net Core 3.1 project from a .Net Standard ...
NET Standard 2.0 project and then you can reference it in your .NET Core 3.1 application and your unit testing project. I only...
Read more >
NET Standard
The most common way to target netstandard is by referencing this metapackage. It describes and provides access to the ~40 .NET libraries and ......
Read more >
Referencing .NET Standard Assemblies from both .NET ...
So we need to tell ALL projects in this solution to manage and restore their packages as "PackageReferences."
Read more >
Project X targets 'netcoreapp2.0'. It cannot be referenced ...
I'm having issues targetting a .net core dll from a .net standard dll. I'm running vs 15.6.0 preview 2.0. ... I can reference...
Read more >
Why is it allowed to refer .net framework libraries in a .net ...
I read your question as "what is a real-world use case for referencing a .Net framework library from a .Net standard library", since...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found