Referencing netcoreapp in a netstandard project
See original GitHub issueFrom @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:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@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?