Info
| Version: | 2.1.2 |
| Author(s): | kzu |
| Last Update: | Friday, October 17, 2025 |
| .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
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"; } } }.