I am creating some general purpose libraries (dll's), to reuse them in .Net Core 2.0 and .Net Framework 4.7 projects. I want to have .Net Core projects on linux and .Net Framework 4.7 projects for Windows. Can a library developed with .Net Core 2.0 be used in .Net Framework 4.7 projects normally?
What you need is a library that has target
.NET Standard
, no.NET Core
..NET Standard
it is a specification of which various frameworks can implement.In the case of .NET Standard 2, it is supported by the following frameworks or higher versions:
In turn, a library created in .NET Standard can be referenced by those frameworks or higher versions.
However, it is recommended that you aim for the lowest possible version that you can target, in this way your library will be compatible with more platforms and previous versions than those mentioned.
For more information on the compatibility table check: .NET Standard - .NET implementation support