C# Class Library

C# Class Library

A class library defines types and methods that are called by an application. If the library targets .NET 7, it can be called by any application that targets .NET 7. When you create a class library, you can optionally distribute it as a NuGet package or as a component bundled with the application that uses it.

In this tutorial, you create a simple class library that contains a single string-handling method:

Last updated