MSBuilder: GenerateAssemblyInfo NuGet Package

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




Got any MSBuilder: GenerateAssemblyInfo Question?





Info

Version: 0.2.2
Author(s): Mobile Essentials
Last Update: Tuesday, November 3, 2020
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/MobileEssentials/MSBuilder/tree/master/src/GenerateAssemblyInfo
NuGet Url: https://www.nuget.org/packages/MSBuilder.GenerateAssemblyInfo


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

3 packages depend on this package.


Tags



STATS

must-have-score

2.8

avg-downloads-per-day

50

days-since-last-release

1463