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)
Dependencies
- Microsoft.CSharp(>= 4.5.0)
- System.Threading.Tasks.Extensions(>= 4.5.4)
- ThisAssembly.Prerequisites(>= 1.0.5)
Tags
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.