MSBuilder.ThisAssembly.Metadata 0.1.3

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
Suggested Alternatives


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.3
NuGet\Install-Package MSBuilder.ThisAssembly.Metadata -Version 0.1.3
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.3" />
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.3
#r "nuget: MSBuilder.ThisAssembly.Metadata, 0.1.3"
#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.3

// Install MSBuilder.ThisAssembly.Metadata as a Cake Tool
#tool nuget:?package=MSBuilder.ThisAssembly.Metadata&version=0.1.3

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`.


     <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">

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

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.4 6,413 12/7/2018
0.1.3 3,393 4/13/2018
0.1.2 868 4/5/2018
0.1.1 869 3/27/2018
0.1.0 880 3/27/2018