Info
Version: | 0.1.4 |
Author(s): | Mobile Essentials |
Last Update: | Friday, December 7, 2018 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/MobileEssentials/MSBuilder/tree/master/src/ThisAssembly.Metadata |
NuGet Url: | https://www.nuget.org/packages/MSBuilder.ThisAssembly.Metadata |
Install
Install-Package MSBuilder.ThisAssembly.Metadata
dotnet add package MSBuilder.ThisAssembly.Metadata
paket add MSBuilder.ThisAssembly.Metadata
MSBuilder.ThisAssembly.Metadata Download (Unzip the "nupkg" after downloading)
Dependencies
- MSBuilder.GenerateAssemblyInfo(>= 0.1.5)
Tags
`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.