Skip to content

Using .NET5 binaries with full framework applications #40304

Answered by davidfowl
hosathota asked this question in General
Discussion options

You must be logged in to vote

The way to think about it is that you're multi-targeting your library so that it can run in multiple places, .NET Framework 4.8, .NET Core 3.1 and .NET 5. It's inaccurate to say that you're writing a .NET 5 library that runs on .NET Core 3.1 as that doesn't always work.

Going by various articles, it looks like that is supported.

It's not supported. You can either build a .NET Standard 2.0 library that runs everywhere, or you can target each of those platforms you want to support my changing your project file to specify them individually.

See https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/cross-platform-targeting for more information.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hosathota
Comment options

@davidfowl
Comment options

@terrajobst
Comment options

Answer selected by GrabYourPitchforks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants