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.
|
6 |
|
GitInfo
Access commit information from MSBuild and C#/F#/VB code, and infer SemVer from branch, tag or version file in Git repository.
|
21 |
|
GitInfo
Access commit information from MSBuild and C#/F#/VB code, and infer SemVer from branch, tag or version file in Git repository.
|
23 |
|
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.
> 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.
|
27 |
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 | 7 | 10/17/2025 |
| 2.1.1 | 4 | 10/18/2025 |
| 2.1.0 | 5 | 10/17/2025 |
| 2.1.0-rc.1 | 4 | 10/18/2025 |
| 2.1.0-rc | 5 | 10/18/2025 |
| 2.1.0-beta | 6 | 10/18/2025 |
| 2.0.14 | 11 | 05/10/2025 |
| 2.0.13 | 9 | 05/11/2025 |
| 2.0.12 | 17 | 03/14/2025 |
| 2.0.11 | 17 | 03/14/2025 |
| 2.0.10 | 21 | 12/11/2024 |
| 2.0.9 | 23 | 12/30/2024 |
| 2.0.8 | 27 | 12/30/2024 |
| 2.0.7 | 24 | 12/23/2024 |
| 2.0.6 | 21 | 12/12/2024 |
| 2.0.5 | 22 | 12/24/2024 |
| 2.0.4 | 21 | 12/13/2024 |
| 2.0.3 | 22 | 12/23/2024 |
| 2.0.2 | 24 | 12/17/2024 |
| 1.4.3 | 23 | 12/23/2024 |
| 1.4.2 | 24 | 12/13/2024 |
| 1.4.1 | 22 | 12/13/2024 |
| 1.4.0 | 26 | 12/16/2024 |
| 1.1.3 | 24 | 12/12/2024 |
| 1.1.2 | 24 | 12/16/2024 |
| 1.1.1 | 24 | 12/13/2024 |
| 1.1.1-beta | 26 | 12/13/2024 |
| 1.1.0 | 24 | 12/13/2024 |
| 1.0.10 | 20 | 12/13/2024 |
| 1.0.9 | 22 | 12/13/2024 |
| 1.0.8 | 20 | 12/24/2024 |
| 1.0.7 | 24 | 12/12/2024 |
| 1.0.6 | 22 | 12/23/2024 |
| 1.0.5 | 25 | 12/13/2024 |
| 1.0.4 | 25 | 12/23/2024 |
| 1.0.3 | 22 | 12/13/2024 |
| 1.0.2 | 20 | 12/13/2024 |
| 1.0.1 | 20 | 12/23/2024 |
| 1.0.0 | 26 | 12/12/2024 |
| 1.0.0-rc.1 | 23 | 12/30/2024 |
| 1.0.0-rc | 21 | 12/23/2024 |
