MSBuilder: ThisAssembly.Metadata Information NuGet Package

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.




Got any MSBuilder: ThisAssembly.Metadata Information Question?





Info

Version: 0.1.4
Author(s): Mobile Essentials
Last Update: Friday, December 7, 2018
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/MobileEssentials/MSBuilder/tree/master/src/ThisAssembly.Metadata
NuGet Url: https://www.nuget.org/packages/MSBuilder.ThisAssembly.Metadata


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

2 packages depend on this package.


Tags



STATS

must-have-score

.3

avg-downloads-per-day

4

days-since-last-release

2178