ThisAssembly.Constants NuGet Package

This package generates a static `ThisAssembly.Constants` class with public
constants for each Constant MSBuild item in the project.

For example:

<ItemGroup>
<Constant Include="Foo.Bar" Value="Baz" />
</ItemGroup>

Results in a corresponding `ThisAssembly.Constants.Foo.Bar` constant with the value `Baz`:

Generated code:
C#:

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



> 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.Constants Question?





Info

Version: 2.0.10
Author(s): kzu
Last Update: Tuesday, November 26, 2024
.NET Fiddle: Create the first Fiddle
Project Url: https://clarius.org/ThisAssembly
NuGet Url: https://www.nuget.org/packages/ThisAssembly.Constants


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

1 package depend on this package.


Tags



STATS

must-have-score

3.9

avg-downloads-per-day

658

days-since-last-release

28