AssemblyMetadata.Generators 2.1.0

dotnet add package AssemblyMetadata.Generators --version 2.1.0                
NuGet\Install-Package AssemblyMetadata.Generators -Version 2.1.0                
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="AssemblyMetadata.Generators" Version="2.1.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AssemblyMetadata.Generators --version 2.1.0                
#r "nuget: AssemblyMetadata.Generators, 2.1.0"                
#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 AssemblyMetadata.Generators as a Cake Addin
#addin nuget:?package=AssemblyMetadata.Generators&version=2.1.0

// Install AssemblyMetadata.Generators as a Cake Tool
#tool nuget:?package=AssemblyMetadata.Generators&version=2.1.0                

AssemblyMetadata.Generators

Source generator to expose assembly attributes as string constants.

Build status

NuGet Version

Coverage Status

Usage

Add package

Add the nuget package project to your projects.

dotnet add package AssemblyMetadata.Generators

Generated

This source generator creates an internal partial class called ThisAssembly with all the assembly level attributes converted to string constants

internal static partial class ThisAssembly
{
    public const string TargetFramework = ".NETCoreApp,Version=v7.0";
    public const string Company = "LoreSoft";
    public const string Configuration = "Debug";
    public const string Copyright = "Copyright © 2023 LoreSoft";
    public const string Description = "Source generator to expose assembly attributes as string constants";
    public const string FileVersion = "1.0.0.0";
    public const string InformationalVersion = "1.0.0";
    public const string Product = "AssemblyMetadata.Generators.Tests";
    public const string Title = "AssemblyMetadata.Generators.Tests";
    public const string Version = "1.0.0.0";
    public const string RepositoryUrl = "https://github.com/loresoft/AssemblyMetadata.Generators";
    public const string NeutralResourcesLanguage = "en-US";
}

Namespace

Set the ThisAssemblyNamespace MSBuild property to set the namespace of the generated ThisAssembly class. Otherwise, it will be in the global namespace.

Put ThisAssembly in the projects root namespace.

<PropertyGroup>
  <ThisAssemblyNamespace>$(RootNamespace)</ThisAssemblyNamespace>
</PropertyGroup>
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on AssemblyMetadata.Generators:

Repository Stars
loresoft/EntityFrameworkCore.Generator
Generate Entity Framework Core model from an existing database
loresoft/Injectio
Source generator that helps register attribute marked services in the dependency injection ServiceCollection
loresoft/LoreSoft.Blazor.Controls
Blazor Controls
Version Downloads Last updated
2.1.0 2,484 9/7/2024
2.1.0-beta.1 63 9/7/2024
2.0.0 6,757 12/6/2023
1.1.0 767 8/11/2023
1.0.0 288 8/10/2023
1.0.0-beta.1 73 8/10/2023