Skip to main content

Generates the ThisAssembly partial class and adds a Project property containing properties from the source project file. These might be useful for conditional behaviors, diagnostics and tracing, and more. Included properties are: AssemblyName, RootNamespace, ProjectGuid, TargetFrameworkVersion, TargetFrameworkIdentifier, TargetFrameworkMoniker, TargetPlatformVersion, TargetPlatformIdentifier and TargetPlatformMoniker. Arbitrary project properties can be included by declaring @(ThisAssemblyProjectProperty) items with the property names to generate, such as: <ThisAssemblyProjectProperty Include="AvailablePlatforms" />

Total Downloads
40.0K
40,015
Published
Jun 8, 2017
9y ago

Deprecated Package Version

Reason: Legacy

Switch to a source-generator based package that is actively maintained

Suggested alternative:ThisAssembly.Project*

Get Started

dotnet add package MSBuilder.ThisAssembly.Project --version 0.3.4

No framework information available.

Downloads by Version

Similar & Alternative Packages

Hand-picked matching NuGet libraries based on tags & ecosystem

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

NuGet marks this package as deprecated and points to ThisAssembly.Project as an alternative.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.