Category: roslyn

  • RSCG – FastCloner

    RSCG – FastCloner     name FastCloner nuget https://www.nuget.org/packages/FastCloner/ link https://github.com/lofcz/FastCloner/ author Matěj Štágl Cloning objects   This is how you can use FastCloner . The code that you start with is The code that you will use is   The code that is generated is // // Generated: 2026-02-03 05:29:59 UTC #nullable enable using…

  • RSCG – OrderedBuildersGenerator

    RSCG – OrderedBuildersGenerator     name OrderedBuildersGenerator nuget https://www.nuget.org/packages/OrderedBuildersGenerator/ link https://github.com/Georgiy-Petrov/OrderedBuildersGenerator author Georgiy Petrov Generating builder classes with enforced property setting order   This is how you can use OrderedBuildersGenerator . The code that you start with is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net10.0</TargetFramework> <Nullable>enable</Nullable> </PropertyGroup> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath> </PropertyGroup> <ItemGroup> <PackageReference Include="OrderedBuildersGenerator" Version="1.0.0" PrivateAssets="all" OutputItemType="Analyzer"…

  • RSCG–Facet Search

    RSCG – Facet.Search     name Facet.Search nuget https://www.nuget.org/packages/Facet.Search/ link https://github.com/Tim-Maes/Facet.Search author Tim Maes Generating search from C# clasess and properties Integrating search in .NET applications   This is how you can use Facet.Search . The code that you start with is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net10.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <PackageReference Include="Facet.Search" Version="0.1.1" />…

  • RSCG_Templating–additional files

    For generating a list of additional files included in project ( see https://github.com/helluvamatt/SvgIconGenerator ) I need to generated the list of them – and maybe an enum . So RSCG_Templating improve with a new attribute , [IGenerateDataFromAdditionalFiles(“FileInTemplating”)] partial class FileInTemplating { } What it does is to send to the template the list of additional…

  • Revisit RSCG_Static

    In 2023 I have created RSCG_Static as a way to mock static methods from classes ( think DateTime, Environment, Process) . From that time , the interfaces in C# have gained static keyword – so  –  a little improvement seems necessary . However, how can you mock a static method from a interface ? The…

  • RSCG – Silhouette

    RSCG – Silhouette     name Silhouette nuget https://www.nuget.org/packages/Silhouette/ link https://github.com/kevingosse/Silhouette author Kevin Gosse Profiling .net applications Measuring performance improvements   This is how you can use Silhouette . The code that you start with is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net10.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> <PublishAot>true</PublishAot> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> </PropertyGroup> <ItemGroup> <PackageReference Include="Silhouette" Version="3.2.0" /> </ItemGroup> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>…

  • RSCG – docopt.net

    RSCG – docopt.net     name docopt.net nuget https://www.nuget.org/packages/docopt.net/ link https://github.com/docopt/docopt.net author Atif Aziz Generating command line argument parsers from usage documentation.   This is how you can use docopt.net . The code that you start with is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net10.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <PackageReference Include="docopt.net" Version="0.8.1" /> </ItemGroup> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>…

  • RSCG – BlazorOcticons

    RSCG – BlazorOcticons     name BlazorOcticons nuget https://www.nuget.org/packages/BlazorOcticons/ link https://github.com/BlazorOcticons/BlazorOcticons author Evgeniy K. Generates Blazor components for GitHub Octicons SVG icons or from svg. Easily integrate GitHub Octicons into your Blazor applications.   This is how you can use BlazorOcticons . The code that you start with is <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> <PropertyGroup> <TargetFramework>net10.0</TargetFramework> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings>…

  • RSCG – Imposter

    RSCG – Imposter     name Imposter nuget https://www.nuget.org/packages/Imposter/ link https://github.com/themidnightgospel/Imposter author Bitchiko Tchelidze Generate classes from interfaces and allows return of mock data. Useful for testing and prototyping.   This is how you can use Imposter . The code that you start with is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net10.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> <IsPackable>false</IsPackable> <IsTestProject>true</IsTestProject> </PropertyGroup> <ItemGroup>…

  • RSCG – Monify

    RSCG – Monify     name Monify nuget https://www.nuget.org/packages/Monify/ link https://github.com/MooVC/monify author Paul Martin Generate primitive strongly typed wrapper around a single value object   This is how you can use Monify . The code that you start with is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net10.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <PackageReference Include="Monify" Version="1.3.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build;…