MSBuilder.Introspect
0.1.5
Prefix Reserved
dotnet add package MSBuilder.Introspect --version 0.1.5
NuGet\Install-Package MSBuilder.Introspect -Version 0.1.5
<PackageReference Include="MSBuilder.Introspect" Version="0.1.5" />
paket add MSBuilder.Introspect --version 0.1.5
#r "nuget: MSBuilder.Introspect, 0.1.5"
// Install MSBuilder.Introspect as a Cake Addin #addin nuget:?package=MSBuilder.Introspect&version=0.1.5 // Install MSBuilder.Introspect as a Cake Tool #tool nuget:?package=MSBuilder.Introspect&version=0.1.5
Allows retrieving the current project's properties and currently building
targets as items and metadata, effectivey allowing retrieval of property
values dynamically by name.
Usage:
<Introspect>
<Output TaskParameter="Properties" ItemName="CurrentProperties" />
<Output TaskParameter="Targets" ItemName="CurrentTargets" />
</Introspect>
<PropertyGroup>
<!-- Note that we're using another property as the dynamic property name to evaluate -->
<PropertyValue>@(CurrentProperties -> Metadata("$(PropertyName)"))</PropertyValue>
</PropertyGroup>
Learn more about Target Frameworks and .NET Standard.
-
- MSBuilder.CodeTaskAssembly (>= 0.2.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MSBuilder.Introspect:
Package | Downloads |
---|---|
MSBuilder.ThisAssembly.Project
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" /> |
GitHub repositories
This package is not used by any popular GitHub repositories.