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