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

Clarius Org Christian Findlay C. Augusto Proiete Kirill Osenkov MFB Technologies, Inc. SandRock Eric C Andy Gocke

Sponsor this project  

Learn more about GitHub 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.
3
GitInfo
Access commit information from MSBuild and C#/F#/VB code, and infer SemVer from branch, tag or version file in Git repository.
4
GitInfo
Access commit information from MSBuild and C#/F#/VB code, and infer SemVer from branch, tag or version file in Git repository.
5
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.
4

https://github.com/devlooped/ThisAssembly/blob/main/changelog.md

Version Downloads Last updated
2.0.10 4 12/11/2024
2.0.9 0 11/23/2024
2.0.8 0 11/08/2024
2.0.7 3 12/23/2024
2.0.6 3 12/12/2024
2.0.5 3 12/24/2024
2.0.4 3 12/13/2024
2.0.3 3 12/23/2024
2.0.2 3 12/17/2024
1.4.3 3 12/23/2024
1.4.2 3 12/13/2024
1.4.1 3 12/13/2024
1.4.0 3 12/16/2024
1.1.3 3 12/12/2024
1.1.2 3 12/16/2024
1.1.1 3 12/13/2024
1.1.1-beta 3 12/13/2024
1.1.0 3 12/13/2024
1.0.10 3 12/13/2024
1.0.9 3 12/13/2024
1.0.8 3 12/24/2024
1.0.7 3 12/12/2024
1.0.6 3 12/23/2024
1.0.5 3 12/13/2024
1.0.4 3 12/23/2024
1.0.3 3 12/13/2024
1.0.2 3 12/13/2024
1.0.1 3 12/23/2024
1.0.0 3 12/12/2024
1.0.0-rc.1 0 10/28/2020
1.0.0-rc 3 12/23/2024