Category: .NET
-
RSCG – MapTo
RSCG – MapTo name MapTo nuget https://www.nuget.org/packages/MapTo/ link https://github.com/mrtaikandi/MapTo author Mohammedreza Taikandi AutoGenerate Mapping This is how you can use MapTo . The code that you start with is [code lang=”xml”] <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath> </PropertyGroup> <ItemGroup> <PackageReference Include="MapTo" Version="0.9.1" /> </ItemGroup> </Project> [/code] The…
-
RSCG – MapTo
RSCG – MapTo name MapTo nuget https://www.nuget.org/packages/MapTo/ link https://github.com/mrtaikandi/MapTo author Mohammedreza Taikandi AutoGenerate Mapping This is how you can use MapTo . The code that you start with is [code lang=”xml”] <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath> </PropertyGroup> <ItemGroup> <PackageReference Include="MapTo" Version="0.9.1" /> </ItemGroup> </Project> [/code] The…
-
RSCG – JsonPolymorphicGenerator
RSCG – JsonPolymorphicGenerator name JsonPolymorphicGenerator nuget https://www.nuget.org/packages/GoLive.Generator.JsonPolymorphicGenerator/ link https://github.com/surgicalcoder/JsonPolymorphicGenerator author surgicalcoder Generating JsonDerivedType to be added to the base class This is how you can use JsonPolymorphicGenerator . The code that you start with is [code lang=”xml”] <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <PackageReference Include="GoLive.Generator.JsonPolymorphicGenerator" Version="1.0.4"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build;…
-
RSCG – BuilderGenerator
RSCG – BuilderGenerator name BuilderGenerator nuget https://www.nuget.org/packages/BuilderGenerator/ link https://github.com/MelGrubb/BuilderGenerator author Mell Grubb Generating Builder class for an object This is how you can use BuilderGenerator . The code that you start with is [code lang=”xml”] <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net7.0</TargetFramework> </PropertyGroup> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath> </PropertyGroup> <ItemGroup> <PackageReference Include="BuilderGenerator" Version="2.3.0" /> </ItemGroup> </Project>…
-
RSCG – Disposer
RSCG – Disposer name Disposer nuget https://www.nuget.org/packages/Disposer/ link https://github.com/HakamFostok/Disposer author Hakan Fıstık Generates partials for dispose resources This is how you can use Disposer . The code that you start with is [code lang=”xml”] <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <PackageReference Include="Disposer" Version="1.0.4" PrivateAssets="all" /> </ItemGroup> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>…
-
RSCG – ResXGenerator
RSCG – ResXGenerator name ResXGenerator nuget https://www.nuget.org/packages/Aigamo.ResXGenerator/ link https://github.com/ycanardeau/ResXGenerator author Aigamo Resources as string This is how you can use ResXGenerator . The code that you start with is [code lang=”xml”] <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <PackageReference Include="Aigamo.ResXGenerator" Version="4.2.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference> </ItemGroup>…
-
RSCG – RSCG_Decorator
RSCG – RSCG_Decorator name RSCG_Decorator nuget https://www.nuget.org/packages/RSCG_Decorator/ link https://github.com/ignatandrei/RSCG_Decorator author Andrei Ignat Intercept methods – start,stop,exception This is how you can use RSCG_Decorator . The code that you start with is [code lang=”xml”] <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> <IsPackable>false</IsPackable> </PropertyGroup> <PropertyGroup> <TreatWarningsAsErrors>True</TreatWarningsAsErrors> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" /> <PackageReference Include="Microsoft.Extensions.Logging"…
-
RSCG – ProtobufSourceGenerator
RSCG – ProtobufSourceGenerator name ProtobufSourceGenerator nuget https://www.nuget.org/packages/LaDeak.ProtobufSourceGenerator/ link https://github.com/ladeak/ProtobufSourceGenerator author Laszlo Deak Serializing a class to protobuf This is how you can use ProtobufSourceGenerator . The code that you start with is [code lang=”xml”] <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <PackageReference Include="LaDeak.ProtobufSourceGenerator" Version="1.5.1" OutputItemType="Analyzer" ReferenceOutputAssembly="true" /> <PackageReference Include="protobuf-net" Version="3.2.26"…
-
RSCG – SafeRouting
RSCG – SafeRouting name SafeRouting nuget https://www.nuget.org/packages/SafeRouting/ link https://github.com/daviddotcs/safe-routing author David Wake Safe Routing for MVC This is how you can use SafeRouting . The code that you start with is [code lang=”xml”] <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>net7.0</TargetFramework> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> </PropertyGroup> <ItemGroup> <PackageReference Include="SafeRouting" Version="1.4.0" /> </ItemGroup> <PropertyGroup> <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> <CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath> </PropertyGroup> </Project> [/code]…
-
RSCG – SourceGenerator.Helper.CopyCode
RSCG – SourceGenerator.Helper.CopyCode name SourceGenerator.Helper.CopyCode nuget https://www.nuget.org/packages/SourceGenerator.Helper.CopyCode/ link https://github.com/LokiMidgard/SourceGenerator.Helper.CopyCode author Patrick Kranz Transform Code to string This is how you can use SourceGenerator.Helper.CopyCode . The code that you start with is [code lang=”xml”] <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <PackageReference Include="SourceGenerator.Helper.CopyCode" Version="0.0.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>…