ThisAssembly.Constants 1.4.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 Kirill Osenkov MFB Technologies, Inc. Stephen Shaw Torutek DRIVE.NET, Inc. David Kean Daniel Gnägi Ashley Medway Keith Pickford bitbonk Thomas Bolon Yurii Rashkovskii Kori Francis Zdenek Havlin Sean Killeen Toni Wenzel Giorgi Dalakishvili Kelly White Allan Ritchie Mike James Uno Platform Dan Siegel Reuben Swartz Jeremy Simmons Jacob Foshee Eric Johnson Norman Mackay Certify The Web Taylor Mansfield Mårten Rånge David Petric Rich Lee Danilo Dantas Gary Woodfine Steve Bilogan Ix Technologies B.V. New Relic Chris Johnston‮ David JENNI Jonathan Oleg Kyrylchuk Juan Blanco LosManos Mariusz Kogut Charley Wu Thomas Due Jakob Tikjøb Andersen Seann Alexander Tino Hager Badre BSAILA Mark Seemann Angelo Belchior Tony Qu Daniel May Blauhaus Technology (Pty) Ltd Richard Collette Nick Vaughan Ken Bonny

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

.NET Standard 2.0

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