RSCG_NameGenerator 2024.26.8.2002
dotnet add package RSCG_NameGenerator --version 2024.26.8.2002
NuGet\Install-Package RSCG_NameGenerator -Version 2024.26.8.2002
<PackageReference Include="RSCG_NameGenerator" Version="2024.26.8.2002" />
paket add RSCG_NameGenerator --version 2024.26.8.2002
#r "nuget: RSCG_NameGenerator, 2024.26.8.2002"
// Install RSCG_NameGenerator as a Cake Addin #addin nuget:?package=RSCG_NameGenerator&version=2024.26.8.2002 // Install RSCG_NameGenerator as a Cake Tool #tool nuget:?package=RSCG_NameGenerator&version=2024.26.8.2002
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>
<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!
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on RSCG_NameGenerator:
Package | Downloads |
---|---|
rscg_queryables
Intercept method |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2024.26.8.2002 | 322 | 8/26/2024 |
2024.26.8.1802 | 107 | 8/26/2024 |
2024.11.11.1830 | 139 | 11/11/2024 |