ThisAssembly.Project NuGet Package

This package generates a static `ThisAssembly.Project` class with public constants exposing project properties that have been opted into this mechanism by adding them as `ProjectProperty` MSBuild items in project file, such as:

<PropertyGroup> <Foo>Bar</Foo> </PropertyGroup>

<ItemGroup> <ProjectProperty Include="Foo" /> </ItemGroup>

Or via the ProjectProperty MSBuild property (included as-is as items), which file-based apps can set with:

#:property ProjectProperty=MSBuildProjectDirectory

A corresponding `ThisAssembly.Project.Foo` constant with the value `Bar` is provided.

Generated code: C#:

partial class ThisAssembly { public static partial class Project { public const string Foo = "Bar"; } }.




Got any ThisAssembly.Project Question?





Info

Version: 2.1.5
Author(s): kzu
Last Update: Thursday, August 27, 2026
.NET Fiddle: Create the first Fiddle
Project Url: https://clarius.org/ThisAssembly
NuGet Url: https://www.nuget.org/packages/ThisAssembly.Project


Install
Install-Package ThisAssembly.Project
dotnet add package ThisAssembly.Project
paket add ThisAssembly.Project
ThisAssembly.Project Download (Unzip the "nupkg" after downloading)

4 packages depend on this package.


Tags



STATS

must-have-score

3.9

avg-downloads-per-day

141

days-since-last-release

4