Category: roslyn

  • RSCG – AutoInterface

    RSCG – AutoInterface     name AutoInterface nuget https://www.nuget.org/packages/AutoInterface/ link https://github.com/BlackWhiteYoshi/AutoInterface author Black White Yoshi generating interface from a class   This is how you can use AutoInterface . 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/AutoInterface

  • RSCG – ShadowWriterBuilder

    RSCG – ShadowWriterBuilder     name ShadowWriterBuilder nuget https://www.nuget.org/packages/ShadowWriter/ link https://github.com/StefanStolz/ShadowWriter author Stefan Stolz Generating null objects for testing   This is how you can use ShadowWriterBuilder . 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/ShadowWriterBuilder

  • RSCG – Flaggen

    RSCG – Flaggen     name Flaggen nuget https://www.nuget.org/packages/Flaggen/ link https://github.com/ricardoboss/Flaggen author Ricardo Boss Explicit operations about flags with enums, and bitwise operations   This is how you can use Flaggen . The code that you start with is The code that you will use is namespace EnumDemo; [Flags] public enum Colors { None =…

  • RSCG – InlineComposition

        name InlineComposition nuget https://www.nuget.org/packages/InlineComposition/ link https://github.com/BlackWhiteYoshi/InlineComposition author Black White Yoshi Mixin classes and interfaces together   This is how you can use InlineComposition . The code that you start with is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net9.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath> </PropertyGroup> <ItemGroup> <PackageReference Include="InlineComposition" Version="1.4.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers;…

  • RSCG – Tortuga.Shipwright

        name Tortuga.Shipwright nuget https://www.nuget.org/packages/Tortuga.Shipwright/ link https://github.com/TortugaResearch/Tortuga.Shipwright author Tortuga Research Generate mixin between classes   This is how you can use Tortuga.Shipwright . The code that you start with is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net9.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <!– Code Generator –> <ItemGroup> <PackageReference Include="Tortuga.Shipwright" Version="0.9.0" > <PrivateAssets>all</PrivateAssets> </PackageReference> <PackageReference Include="Tortuga.Shipwright.Shared" Version="0.9.0" /> </ItemGroup>…

  • RSCG – jos.enumeration

        name jos.enumeration nuget https://www.nuget.org/packages/jos.enumeration/ link https://github.com/joseftw/jos.enumeration author Josef Ottosson Generating enum from static consts   This is how you can use jos.enumeration . The code that you start with is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net9.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <PackageReference Include="JOS.Enumeration" Version="4.0.2" /> <PackageReference Include="JOS.Enumeration.SourceGenerator" Version="4.0.2" /> </ItemGroup> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath> </PropertyGroup> </Project>…

  • RSCG – Strings.ResourceGenerator

    RSCG – Strings.ResourceGenerator     name Strings.ResourceGenerator nuget https://www.nuget.org/packages/Strings.ResourceGenerator/ link https://github.com/biggik/Strings.ResourceGenerator author Birgir Kristmannsson Generating strongly typed string resources – with parameter and Localization   This is how you can use Strings.ResourceGenerator . The code that you start with is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net8.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <AdditionalFiles Include="TestData\*.json" /> </ItemGroup> <ItemGroup> <PackageReference…

  • RSCG – Figgle

    RSCG – Figgle     name Figgle nuget https://www.nuget.org/packages/Figgle.Generator/ link https://github.com/drewnoakes/figgle author Drew Noakes Generating ASCII art text for console applications   This is how you can use Figgle . The code that you start with is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net9.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <PackageReference Include="Figgle.Generator" Version="0.6.4" PrivateAssets="all" /> </ItemGroup> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>…

  • RSCG – SuperFluid

    RSCG – SuperFluid     name SuperFluid nuget https://www.nuget.org/packages/SuperFluid/ link https://github.com/hughesjs/SuperFluid author James Hughes Generate a state machine from a yaml file   This is how you can use SuperFluid . The code that you start with is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net8.0</TargetFramework> <OutputType>Exe</OutputType> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> </PropertyGroup> <ItemGroup> <AdditionalFiles Include="Calculator.fluid.yml" /> </ItemGroup> <ItemGroup> <PackageReference Include="SuperFluid" Version="1.0.1"…

  • RSCG – DimonSmart.BuilderGenerator

    RSCG – DimonSmart.BuilderGenerator     name DimonSmart.BuilderGenerator nuget https://www.nuget.org/packages/DimonSmart.BuilderGenerator/ link https://github.com/DimonSmart/BuilderGenerator author Dmitry Dorogoy Generating builder pattern code for classes   This is how you can use DimonSmart.BuilderGenerator . The code that you start with is <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net9.0</TargetFramework> </PropertyGroup> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath> </PropertyGroup> <ItemGroup> <PackageReference Include="DimonSmart.BuilderGenerator" Version="1.25310.2229" /> </ItemGroup> </Project> The code…