Skip to main content
.NETStandard2.0

** C# 9.0 ONLY ** 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"; } } } Built from https://github.com/kzu/ThisAssembly/tree/b159e8161

Published
Oct 28, 2020
6y ago
Total Downloads
3.9M
3,916,613

Install

dotnet add package ThisAssembly.Constants --version 1.0.0-rc.1
ProductVersions
.NET Standard
netstandard2.0

Changes from Previous Version

No structural changes between v1.0.0-rc and v1.0.0-rc.1.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.