ThisAssembly.Constants 1.1.1
This package generates a static ThisAssembly.Constants class with public
constants for @(Constant) MSBuild items in the project.
<ItemGroup>
<Constant Include="Foo.Bar" Value="Baz" Comment="Yay!" />
<Constant Include="Foo.Hello" Value="World" Comment="Comments make everything better 😍" />
</ItemGroup>

In addition to arbitrary constants via <Constant ...>, it's quite useful (in particular in test projects)
to generate constants for files in the project, so there's also a shorthand for those:
<ItemGroup>
<FileConstant Include="@(Content)" />
</ItemGroup>
Which results in:

Sponsors
Showing the top 20 packages that depend on ThisAssembly.Constants.
| Packages | Downloads |
|---|---|
|
GitInfo
Access commit information from MSBuild and C#/F#/VB code, and infer SemVer from branch, tag or version file in Git repository.
|
18 |
|
GitInfo
Access commit information from MSBuild and C#/F#/VB code, and infer SemVer from branch, tag or version file in Git repository.
|
29 |
|
GitInfo
Access commit information from MSBuild and C#/F#/VB code, and infer SemVer from branch, tag or version file in Git repository.
|
30 |
|
GitInfo
Access commit information from MSBuild and C#/F#/VB code, and infer SemVer from branch, tag or version file in Git repository.
|
39 |
|
GitInfo
Access commit information from MSBuild and C#/F#/VB code, and infer SemVer from branch, tag or version file in Git repository.
> 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.
|
35 |
https://github.com/devlooped/ThisAssembly/blob/main/changelog.md
.NET Standard 2.0
- Microsoft.CSharp (>= 4.7.0)
- System.Threading.Tasks.Extensions (>= 4.5.4)
- ThisAssembly.Prerequisites (>= 1.1.1)
| Version | Downloads | Last updated |
|---|---|---|
| 2.1.2 | 20 | 10/17/2025 |
| 2.1.1 | 13 | 10/18/2025 |
| 2.1.0 | 16 | 10/17/2025 |
| 2.1.0-rc.1 | 14 | 10/18/2025 |
| 2.1.0-rc | 17 | 10/18/2025 |
| 2.1.0-beta | 16 | 10/18/2025 |
| 2.0.14 | 21 | 05/10/2025 |
| 2.0.13 | 18 | 05/11/2025 |
| 2.0.12 | 28 | 03/14/2025 |
| 2.0.11 | 29 | 03/14/2025 |
| 2.0.10 | 29 | 12/11/2024 |
| 2.0.9 | 33 | 12/30/2024 |
| 2.0.8 | 37 | 12/30/2024 |
| 2.0.7 | 32 | 12/23/2024 |
| 2.0.6 | 30 | 12/12/2024 |
| 2.0.5 | 29 | 12/24/2024 |
| 2.0.4 | 27 | 12/13/2024 |
| 2.0.3 | 27 | 12/23/2024 |
| 2.0.2 | 31 | 12/17/2024 |
| 1.4.3 | 29 | 12/23/2024 |
| 1.4.2 | 34 | 12/13/2024 |
| 1.4.1 | 30 | 12/13/2024 |
| 1.4.0 | 35 | 12/16/2024 |
| 1.1.3 | 32 | 12/12/2024 |
| 1.1.2 | 36 | 12/16/2024 |
| 1.1.1 | 32 | 12/13/2024 |
| 1.1.1-beta | 33 | 12/13/2024 |
| 1.1.0 | 31 | 12/13/2024 |
| 1.0.10 | 30 | 12/13/2024 |
| 1.0.9 | 30 | 12/13/2024 |
| 1.0.8 | 27 | 12/24/2024 |
| 1.0.7 | 31 | 12/12/2024 |
| 1.0.6 | 32 | 12/23/2024 |
| 1.0.5 | 32 | 12/13/2024 |
| 1.0.4 | 35 | 12/23/2024 |
| 1.0.3 | 28 | 12/13/2024 |
| 1.0.2 | 28 | 12/13/2024 |
| 1.0.1 | 27 | 12/23/2024 |
| 1.0.0 | 33 | 12/12/2024 |
| 1.0.0-rc.1 | 30 | 12/30/2024 |
| 1.0.0-rc | 28 | 12/23/2024 |
