MSBuilder.GenerateAssemblyInfo 0.2.1

Allows emitting arbitrary assembly attributes, compatible with SDK-style projects and classic ones.

Usage: declare @(AssemblyAttribute) items to include, such as:

 <ItemGroup>
   <AssemblyAttribute Include="[ATTRIBUTE_FULL_TYPENAME]" _Parameter1="[CTOR_ARG]" _ParameterN="[CTOR_ARG_N]" />
 </ItemGroup>

The `_ParameterN` attributes must match the attribute constructor arguments.

Use the following properties to customize what is generated:

 <PropertyGroup>
   <GenerateAssemblyCompanyAttribute>true|false</GenerateAssemblyCompanyAttribute>
   <GenerateAssemblyConfigurationAttribute>true|false</GenerateAssemblyConfigurationAttribute>
   <GenerateAssemblyCopyrightAttribute>true|false</GenerateAssemblyCopyrightAttribute>
   <GenerateAssemblyDescriptionAttribute>true|false</GenerateAssemblyDescriptionAttribute>
   <GenerateAssemblyFileVersionAttribute>true|false</GenerateAssemblyFileVersionAttribute>
   <GenerateAssemblyInformationalVersionAttribute>true|false</GenerateAssemblyInformationalVersionAttribute>
   <GenerateAssemblyProductAttribute>true|false</GenerateAssemblyProductAttribute>
   <GenerateAssemblyTitleAttribute>true|false</GenerateAssemblyTitleAttribute>
   <GenerateAssemblyVersionAttribute>true|false</GenerateAssemblyVersionAttribute>
   <GenerateNeutralResourcesLanguageAttribute>true|false</GenerateNeutralResourcesLanguageAttribute>
 </PropertyGroup>

And their corresponding values
 
 * AssemblyCompanyAttribute: $(Company)
 * AssemblyConfigurationAttribute: $(Configuration)
 * AssemblyCopyrightAttribute: $(Copyright)
 * AssemblyDescriptionAttribute: $(Description)
 * AssemblyFileVersionAttribute: $(FileVersion)
 * AssemblyInformationalVersionAttribute: $(InformationalVersion)
 * AssemblyProductAttribute: $(Product)
 * AssemblyTitleAttribute: $(AssemblyTitle)
 * AssemblyVersionAttribute: $(AssemblyVersion)
 * NeutralResourcesLanguageAttribute: $(NeutralLanguage)

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

Dependencies

This package has no dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on MSBuilder.GenerateAssemblyInfo:

Package Downloads
MSBuilder.ThisAssembly.Metadata
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
Gherkinator.Build
Package Description

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on MSBuilder.GenerateAssemblyInfo:

Repository Stars
xamarin/Xamarin.Forms
Xamarin.Forms Official Home
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.

Version History

Version Downloads Last updated
0.2.1 96,132 8/3/2018
0.2.0 295 8/2/2018
0.1.5 4,488 4/13/2018
0.1.4 360 4/5/2018
0.1.3 387 3/27/2018
0.1.2 362 3/26/2018
0.1.1 402 3/26/2018