Category: .NET

  • RSCG – Sundew.DiscriminatedUnions

    RSCG – Sundew.DiscriminatedUnions     name Sundew.DiscriminatedUnions nuget https://www.nuget.org/packages/Sundew.DiscriminatedUnions/ link https://github.com/sundews/Sundew.DiscriminatedUnions author Kim Hugener Ohlsen Generate tagged union   This is how you can use Sundew.DiscriminatedUnions . The code that you start with is The code that you will use is   The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/Sundew.DiscriminatedUnions

  • RSCG – KnockOff

    RSCG – KnockOff     name KnockOff nuget https://www.nuget.org/packages/KnockOff/ link https://github.com/NeatooDotNet/KnockOff author Keith Voels Generating test stubs with mocking for interfaces   This is how you can use KnockOff . The code that you start with is The code that you will use is   The code that is generated is Code and pdf at…

  • RSCG – ErrorOrX

    RSCG – ErrorOrX     name ErrorOrX nuget https://www.nuget.org/packages/ErrorOrX/ link https://github.com/ANcpLua/ErrorOrX author Alexander Nachtmanns API results from Functional returns of ErroOrX   This is how you can use ErrorOrX . The code that you start with is The code that you will use is   The code that is generated is Code and pdf at…

  • RSCG- Idempotency- Idea and implementation

    Everyone is talking about idempotency ( Idempotence – Wikipedia  ) . So it should be easy to implement as a code generator – just having an attribute to apply ? One more thing: if we store the values, then somehow , after some time, we  should clean (maybe after 1 year ? ) So the…

  • Blazor Browser History-part–04-problems solved

    01 Deploy to github pages – that are not root enabled To display to Githbub pages ( i.e. https://ignatandrei.github.io/BlazorBrowserHistory/ ) the base href must be overwritten To do so I have been doing in index.html with a powershell script found in src\BBH\modifyPostData.ps1 Write-Host “modify index.html” $indexFilePath = “Release/UIBlazor/wwwroot/index.html” $Content = Get-Content -Path $indexFilePath -Raw $updatedContent…

  • 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…

  • Aspire as ChaosMonkey

    If I have all Aspire resources exposed , would not be easy to expose the endpoints to START and STOP the resources  ? And from idea to implementation – it is pretty easy . 1. Add a WebApp  => var builder = WebApplication.CreateBuilder();        2. Expose List as API – Use  ResourceNotificationService.TryGetCurrentState to see the…