dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.58k stars 25.3k forks source link

Update guidance for targeting ASP.NET Core from libraries for .NET 6 #21725

Open danroth27 opened 3 years ago

danroth27 commented 3 years ago

This doc has a bunch of content in it that is specific to .NET Core 3.0 or 3.1.

For Blazor libraries, we now recommend that you target .NET 5. If you need to also support .NET Core 3.1 LTS, then you should target .NET Core 3.1. You can optionally multi-target netcoreapp3.1 and net5.0 if you want to take advantage of new features in .NET 5. Targeting .NET Standard should no longer be necessary now that Blazor WebAssembly 3.2 is out of support. Setting the RazorLangVersion should no longer be necessary if you're not targeting .NET Standard.

@pranavkm


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

guardrex commented 3 years ago

The Blazor node class lib topic received the 5.0 treatment. It looks like this (sneaky 😈) content didn't. I'll work on this tomorrow (Tuesday) morning.

guardrex commented 3 years ago

@scottaddie ... I reckon that this topic requires further treatment beyond Blazor, including possibly snippet work, so I'll hand it over. If not tho ... if only Blazor pieces needed work to resolve this and snippets are ok ... we're good to close.

Rick-Anderson commented 3 years ago

Related #21624