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 AssemblyMetadata Nuget GitHub Repo stars 2026-04-02

2 AssemblyMetadata.Generators Nuget GitHub Repo stars 2026-05-15

3 AssemblyVersionInfo Nuget GitHub Repo stars 2025-07-28

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

5 AutoSpectre NugetNuget GitHub Repo stars 2024-02-24

6 Bennewitz.Ninja.AutoVersioning Nuget GitHub Repo stars 2026-07-04

7 BuildInfo Nuget GitHub Repo stars 2024-01-20

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

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

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

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

12 PlantUmlClassDiagramGenerator NugetNuget GitHub Repo stars 2024-02-20

13 PropertyResolvers Nuget GitHub Repo stars 2026-08-26

14 RSCG_AMS Nuget GitHub Repo stars 2023-04-16

15 RSCG_ExportDiagram Nuget GitHub Repo stars 2024-08-01

16 RSCG_FunctionsWithDI Nuget GitHub Repo stars 2023-04-16

17 RSCG_NameGenerator Nuget GitHub Repo stars 2024-08-25

18 RSCG_TimeBombComment Nuget GitHub Repo stars 2023-04-16

19 RSCG_Wait Nuget GitHub Repo stars 2024-02-21

20 ShadowWriterProjectInfo Nuget GitHub Repo stars 2025-07-27

21 ThisAssembly Nuget GitHub Repo stars 2023-04-16

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

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

See category​

EnhancementProject