ThisAssembly.Metadata NuGet Package

This package generates a static `ThisAssembly.Metadata` class with public
constants exposing each `[System.Reflection.AssemblyMetadata(..)]` defined for the project,
such as when using .NET 5.0+ support for `AssemblyMetadata` MSBuild items.

So for an attribute like:

[assembly: System.Reflection.AssemblyMetadataAttribute("Foo", "Bar")]

A corresponding `ThisAssembly.Metadata.Foo` constant with the value `Bar` is provided.


The metadata attribute can alternatively be declared using MSBuild in the project
(for .NET 5.0+ projects):

<ItemGroup>
<AssemblyMetadata Include="Foo" Value="Bar" />
</ItemGroup>

Generated code:
C#:

partial class ThisAssembly
{
public static partial class Metadata
{
public const string Foo = "Bar";
}
}


> This project uses SponsorLink to attribute sponsor status (direct, indirect or implicit). For IDE usage, sponsor status is required.


> IDE-only warnings will be emitted after a grace period otherwise. Learn more at https://github.com/devlooped#sponsorlink.




Got any ThisAssembly.Metadata Question?





Info

Version: 2.0.8
Author(s): kzu
Last Update: Friday, November 8, 2024
.NET Fiddle: Create the first Fiddle
Project Url: https://clarius.org/ThisAssembly
NuGet Url: https://www.nuget.org/packages/ThisAssembly.Metadata


Install
Install-Package ThisAssembly.Metadata
dotnet add package ThisAssembly.Metadata
paket add ThisAssembly.Metadata
ThisAssembly.Metadata Download (Unzip the "nupkg" after downloading)

1 package depend on this package.


Tags



STATS

must-have-score

3.9

avg-downloads-per-day

68

days-since-last-release

15