MSBuilder.ThisAssembly.Metadata
0.1.1
Prefix Reserved
Switch to a source-generator based package that is actively maintained.
See the version list below for details.
dotnet add package MSBuilder.ThisAssembly.Metadata --version 0.1.1
NuGet\Install-Package MSBuilder.ThisAssembly.Metadata -Version 0.1.1
<PackageReference Include="MSBuilder.ThisAssembly.Metadata" Version="0.1.1" />
paket add MSBuilder.ThisAssembly.Metadata --version 0.1.1
#r "nuget: MSBuilder.ThisAssembly.Metadata, 0.1.1"
// Install MSBuilder.ThisAssembly.Metadata as a Cake Addin #addin nuget:?package=MSBuilder.ThisAssembly.Metadata&version=0.1.1 // Install MSBuilder.ThisAssembly.Metadata as a Cake Tool #tool nuget:?package=MSBuilder.ThisAssembly.Metadata&version=0.1.1
This package extends MSBuilder.GenerateAssemblyInfo to also generate a static
`ThisAssembly.Metadata` class with the `@(AssemblyAttribute)` attributes that
have `Include="System.Reflection.AssemblyMetadataAttribute"`.
So for an attribute like:
[assembly: System.Reflection.AssemblyMetadataAttribute("Foo", "Bar")]
You get a corresponding `ThisAssembly.Metadata.Foo` constant with the value `Bar`.
Example:
<ItemGroup>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>Foo</_Parameter1>
<_Parameter2>Bar</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
Generates (C#):
partial class ThisAssembly
{
public static partial class Metadata
{
public const string Foo = "Bar";
}
}
or (VB):
Namespace Global
Partial Class ThisAssembly
Partial Class Metadata
Public Const Foo = "Bar"
End Class
End Class
End Namespace
Learn more about Target Frameworks and .NET Standard.
-
- MSBuilder.GenerateAssemblyInfo (>= 0.1.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MSBuilder.ThisAssembly.Metadata:
Package | Downloads |
---|---|
Gherkinator.Build
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.