MSBuilder.ThisAssembly.Metadata 0.1.4

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

Install-Package MSBuilder.ThisAssembly.Metadata -Version 0.1.4
dotnet add package MSBuilder.ThisAssembly.Metadata --version 0.1.4
<PackageReference Include="MSBuilder.ThisAssembly.Metadata" Version="0.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MSBuilder.ThisAssembly.Metadata --version 0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.4 746 12/7/2018
0.1.3 2,536 4/13/2018
0.1.2 224 4/5/2018
0.1.1 221 3/27/2018
0.1.0 235 3/27/2018