Overview of ThisAssembly
mainThisAssembly is a collection of Roslyn-powered source generators that expose project and assembly-level information as C# constants. The primary entry point is a partial class named ThisAssembly located in the global namespace (by default), which can be extended with manual members.
Key features:
- Exposes assembly attributes, Git information, MSBuild constants, and project metadata as type-safe C# constants.
- Uses the
$(ThisAssemblyNamespace)MSBuild property to customize the root namespace. - Each specialized package extends the
ThisAssemblypartial class to add its own nested types and members. - For convenience, the
ThisAssemblymeta-package includes all individual packages.
// The generated class is partial, allowing you to add your own members
public partial class ThisAssembly
{
public static void MyManualMethod() { }
}