MSBuilder.ThisAssembly.Metadata 0.1.1

Prefix Reserved
Suggested Alternatives

ThisAssembly.Metadata

Additional Details

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

There is a newer version of this package available.
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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MSBuilder.ThisAssembly.Metadata" Version="0.1.1" />                
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.1                
#r "nuget: MSBuilder.ThisAssembly.Metadata, 0.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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.