Category: RSCG

  • RSCG – AOP.Logging.SourceGenerator

    RSCG – AOP.Logging.SourceGenerator     name AOP.Logging.SourceGenerator nuget https://www.nuget.org/packages/AOP.Logging.SourceGenerator/ link https://github.com/dborgards/aop.logging.net author Dietmar Borgards Logging methods by generating new ones   This is how you can use AOP.Logging.SourceGenerator . 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/AOP.Logging.SourceGenerator

  • RSCG – Najlot.Map.SourceGenerator

    RSCG – Najlot.Map.SourceGenerator     name Najlot.Map.SourceGenerator nuget https://www.nuget.org/packages/Najlot.Map.SourceGenerator/ link https://github.com/najlot/Map author Najlot Generates object mapping code at compile time using source generators   This is how you can use Najlot.Map.SourceGenerator . The code that you start with is The code that you will use is   The code that is generated is Code and…

  • RSCG – TrimItEasy

    RSCG – TrimItEasy     name TrimItEasy nuget https://www.nuget.org/packages/TrimItEasy/ link https://github.com/phongnguyend/TrimItEasy author Phong Nguyen trimming eacg string from a class properties   This is how you can use TrimItEasy . The code that you start with is The code that you will use is   The code that is generated is // #nullable enable using…

  • RSCG – SatorImaging.TDoubles

    RSCG – SatorImaging.TDoubles     name SatorImaging.TDoubles nuget https://www.nuget.org/packages/SatorImaging.TDoubles/ link https://github.com/sator-imaging/TDoubles author Sator Imaging Generating test stubs with mocking for interfaces   This is how you can use SatorImaging.TDoubles . 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> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" /> <PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />…

  • RSCG – PropertyResolvers

    RSCG – PropertyResolvers     name PropertyResolvers nuget https://www.nuget.org/packages/PropertyResolvers/ link https://github.com/tombiddulph/PropertyResolvers author Tom Biddulph Generating code for switch for property in C#   This is how you can use PropertyResolvers . 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="PropertyResolvers" Version="0.0.9"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles;…

  • RSCG – Pinecone.TypedPath

    RSCG – Pinecone.TypedPath     name Pinecone.TypedPath nuget https://www.nuget.org/packages/Pinecone.TypedPath/ link https://github.com/nickpinecone/typed-path author Nick Pinecone Generating typed paths for file system navigation and manipulation.   This is how you can use Pinecone.TypedPath . 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> <AdditionalFiles Include="MyFolderToShow/**" /> </ItemGroup> <ItemGroup> <PackageReference Include="Pinecone.TypedPath"…

  • RSCG – IncrementalSourceGenerator.BuilderPattern

        name IncrementalSourceGenerator.BuilderPattern nuget https://www.nuget.org/packages/IncrementalSourceGenerator.BuilderPattern/ link https://github.com/MartinBarrettNielsen11/Incremental-source-generator-builder-pattern author Martin Barrett Nielsen Generate builder pattern code for classes with many properties   This is how you can use IncrementalSourceGenerator.BuilderPattern . 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="IncrementalSourceGenerator.BuilderPattern" Version="1.0.2" /> </ItemGroup> </Project>…

  • RSCG – Clap.Net

        name Clap.Net nuget https://www.nuget.org/packages/Clap.Net/ link https://github.com/simon-curtis/Clap.Net author Simon Curtis Command line arguments parsing   This is how you can use Clap.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> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath> </PropertyGroup> <ItemGroup> <PackageReference Include="Clap.Net" Version="0.2.39" /> </ItemGroup> </Project> The code that you will…

  • RSCG – EndpointHelpers

        name EndpointHelpers nuget https://www.nuget.org/packages/EndpointHelpers/ link https://github.com/gumbarros/EndpointHelpers author Gustavo Mauricio de Barros Generating endpoint helpers for ASP.NET Core MVC   This is how you can use EndpointHelpers . The code that you start with is <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>net10.0</TargetFramework> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> </PropertyGroup> <ItemGroup> <PackageReference Include="EndpointHelpers" Version="2.0.2" /> </ItemGroup> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath> </PropertyGroup> </Project> The…

  • RSCG – serde

    name serde nuget https://www.nuget.org/packages/serde/ link https://github.com/serdedotnet/serde author Andy Gocke Serializing in SERDE format   This is how you can use serde . 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> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath> </PropertyGroup> <ItemGroup> <PackageReference Include="Serde" Version="0.17.1" /> </ItemGroup> </Project> The code that you will use is…