Category: .NET

  • AssemblyMetadata

    RSCG – AssemblyMetadata     name AssemblyMetadata nuget https://www.nuget.org/packages/AssemblyMetadata/ link https://github.com/BenjaminAbt/AssemblyMetadata author Benjamin Abt Generates compile-time assembly metadata constants (build date, year, time, etc.) — access build info as typed properties without runtime reflection. How to use 1. Add the package as an Analyzer (no runtime reference needed): “`xml OutputItemType=”Analyzer” ReferenceOutputAssembly=”false” /> “` 2. Use the generated…

  • TypedPaths

    RSCG – TypedPaths     name TypedPaths nuget https://www.nuget.org/packages/TypedPaths.Generator/ link https://github.com/AlexChim1231/TypedPaths/ author Alex Chim Turns a folder tree into strongly-typed path constants at compile time — access file/folder paths as typed properties instead of magic strings. How to use 1. Declare which folder to scan in .csproj: “`xml “` 2. Access generated typed path constants: “`charp Console.WriteLine(TypedPaths.Src.Andrei.Value);…

  • REslava.ResultFlow

    RSCG – REslava.ResultFlow     name REslava.ResultFlow nuget https://www.nuget.org/packages/REslava.ResultFlow/ link https://github.com/reslava/nuget-package-reslava-result/ author Rafa Eslava Generates Mermaid flowchart diagrams at compile time from fluent Result pipeline methods — visualize functional code flows as diagrams runtime overhead. How to use 1. Decorate a fluent Result method with [ResultFlow]: “`charp [REslava.ResultFlow.ResultFlow] public static Result GetValueFromConsole() { return Result.Ok(value) .Ensure(s =>…

  • Pekspro.DataAnnotationValuesExtractor

    RSCG – Pekspro.DataAnnotationValuesExtractor     name Pekspro.DataAnnotationValuesExtractor nuget https://www.nuget.org/packages/Pekspro.DataAnnotationValuesExtractor/ link https://github.com/pekspro/DataAnnotationValuesExtractor author Pekspro Generates typed constants from DataAnnotations attributes ([Range], [StringLength], [Required], [Display]) at compile time — no reflection needed to read annotation values. How to use 1. Decorate your model with standard DataAnnotations: “`charp partial class Person { [Display(Name = “First name”)] [StringLength(100, MinimumLength = 3)]…

  • MSvg: SVG Icons for .NET and Blazor

    MultipleSVG is a .NET project for developers who want ready-to-use SVG icons without manually copying files into their apps. The main NuGet package is MSvg.All. See  the icons at https://ignatandrei.github.io/MultipleSVG/icons It exposes icons as strongly typed SvgIconGenerator.IconDto values in the MSvg.All namespace. The package is useful in console apps, ASP.NET Core projects, tools, and any…

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