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";
}
}
}.




Got any ThisAssembly.Constants Question?





Info

Version: 1.4.3
Author(s): kzu
Last Update: Tuesday, January 30, 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

246

days-since-last-release

88