Skip to main content

RSCG_NameGenerator by Andrei Ignat

NuGet / site data

Nuget GitHub last commit GitHub Repo stars

Details

Info

info

Name: RSCG_NameGenerator

Generates uniqe names for release

Author: Andrei Ignat

NuGet: https://www.nuget.org/packages/RSCG_NameGenerator/

You can find more details at https://github.com/ignatandrei/NameGenerator/

Source: https://github.com/ignatandrei/NameGenerator/

Original Readme

note

NameGenerator

Generator of names for an assembly / product release . Generates names for {adjective}-{name} or {adjective-name-city}

The fact that is a Roslyn Code Generator ensures that you can use it in your projects without any additional dependencies - and get rid of him !

Usage

Add to the .csproj file:

 <ItemGroup>
<PackageReference Include="RSCG_NameGenerator" Version="2024.26.8.2002" >
<OutputItemType>Analyzer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</PackageReference>
</ItemGroup>
<!-- optional -->
<PropertyGroup>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
</PropertyGroup>

Then, in the code, you can use the following code:

using Generated.TestNameGenerator;
//by just putting here
//you will not deploy the dll when you deploy the project
//name are generated in the code source
Console.WriteLine($"Name:{TheAssemblyInfo.GeneratedName}");
Console.WriteLine($"Nice:{TheAssemblyInfo.GeneratedNameNice}");
Console.WriteLine($"Small:{TheAssemblyInfo.GeneratedNameSmall}");

More examples

Please see https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG for a list of examples of Roslyn Source Code Generators

Enjoy!

About

note

Generating unique names for assemblies

How to use

Example (source csproj, source files)

This is the CSharp Project that references RSCG_NameGenerator

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>

<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RSCG_NameGenerator" Version="2024.26.8.2002" >
<OutputItemType>Analyzer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</PackageReference>
</ItemGroup>
<PropertyGroup>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
</PropertyGroup>
</Project>

Generated Files

Those are taken from $(BaseIntermediateOutputPath)\GX


// <auto-generated/>
namespace Generated.TestNameGenerator
{
public static class TheAssemblyInfo
{
public const string AssemblyName = "TestNameGenerator";
public const string GeneratedNameNice = "Henri Bergson is feeling clear in Dhaka";
public const string GeneratedNameSmall = "clear-Henri Bergson";
public const string GeneratedName = "clear-Henri Bergson-Dhaka";

}
}

Useful

Download Example (.NET C#)

Share RSCG_NameGenerator

https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_NameGenerator

aaa

Category "EnhancementProject" has the following generators:

1 AssemblyVersionInfo Nuget GitHub Repo stars 2025-07-28

2 AutoInvoke.Generator Nuget GitHub Repo stars 2024-03-03

3 AutoSpectre NugetNuget GitHub Repo stars 2024-02-24

4 BuildInfo Nuget GitHub Repo stars 2024-01-20

5 Credfeto.Version.Information.Generator Nuget GitHub Repo stars 2024-11-05

6 Larcanum.GitInfo Nuget GitHub Repo stars 2025-01-17

7 LinqGen.Generator NugetNuget GitHub Repo stars 2024-03-04

8 Pekspro.BuildInformationGenerator Nuget GitHub Repo stars 2024-07-19

9 PlantUmlClassDiagramGenerator NugetNuget GitHub Repo stars 2024-02-20

10 RSCG_AMS Nuget GitHub Repo stars 2023-04-16

11 RSCG_ExportDiagram Nuget GitHub Repo stars 2024-08-01

12 RSCG_FunctionsWithDI Nuget GitHub Repo stars 2023-04-16

13 RSCG_NameGenerator Nuget GitHub Repo stars 2024-08-25

14 RSCG_TimeBombComment Nuget GitHub Repo stars 2023-04-16

15 RSCG_Wait Nuget GitHub Repo stars 2024-02-21

16 ShadowWriterProjectInfo Nuget GitHub Repo stars 2025-07-27

17 ThisAssembly Nuget GitHub Repo stars 2023-04-16

18 ThisAssembly.Constants Nuget GitHub Repo stars 2024-07-18

19 ThisAssembly.Metadata Nuget GitHub Repo stars 2024-07-20

See category

EnhancementProject