You’d choose between a .NET Standard Class Library and a .NET Core Library based on your target platforms and compatibility needs:
- Use .NET Standard Class Library when you want to build a library that can be shared and used across multiple .NET platforms—such as .NET Core, .NET Framework, Xamarin, and others. It ensures maximum cross-platform compatibility.
- Use a .NET Core Library when your library is intended to work only within .NET Core or later unified .NET versions and you want to take advantage of the latest .NET Core-specific features and APIs that may not be available in .NET Standard.
In short, pick .NET Standard for broad compatibility, and .NET Core when targeting modern, platform-specific scenarios.
Comments
Add comment