Category: .NET
-
RSCG – ShadowWriterNullobjects
RSCG – ShadowWriterNullobjects name ShadowWriterNullobjects nuget https://www.nuget.org/packages/ShadowWriter/ link https://github.com/StefanStolz/ShadowWriter author Stefan Stolz Generate null object for an class that implements an interface This is how you can use ShadowWriterNullobjects . The code that you start with is The code that you will use is The code that is generated is Code…
-
Dotnet Global Tools Extension for ASPIRE–part 2–code and usage
First thing – – usage must be simple . So this is something that can be reproduces easy on each ASPIRE project : builder.AddDotnetGlobalTools(“dotnet-ef”, “dotnet-depends”); I cannot imagine simpler than this – and , of course, you can add many more other dotnet tools – see https://www.nuget.org/packages?q=&includeComputedFrameworks=true&packagetype=dotnettool&prerel=true&sortby=relevance What happens: Now a Aspire resource will be…
-
Dotnet Global Tools Extension for ASPIRE–part 1–idea
Every time I am at a new PC , I need dotnet to program. Ans also I find the need to install some dotnet tools ( global or local) . To mention only 2, dotnet-ef – Entity Framework Core command-line tool for database scaffolding ,migrations and management dotnet-outdated – Checks for outdated NuGet dependencies in…
-
RSCG – AssemblyVersionInfo
RSCG – AssemblyVersionInfo name AssemblyVersionInfo nuget https://www.nuget.org/packages/AssemblyVersionInfo/ link https://github.com/BlackWhiteYoshi/AssemblyVersionInfo author Black White Yoshi Generating assembly version and other info from csproj to csharp This is how you can use AssemblyVersionInfo . The code that you start with is The code that you will use is The code that is generated is…
-
RSCG–ShadowWriter ProjectInfo
RSCG – ShadowWriterProjectInfo name ShadowWriterProjectInfo nuget https://www.nuget.org/packages/ShadowWriter/ link https://github.com/StefanStolz/ShadowWriter author Stefan Stolz Generating C# code from project attributes This is how you can use ShadowWriterProjectInfo . 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/ShadowWriterProjectInfo
-
RSCG – AsyncIt
RSCG – AsyncIt name AsyncIt nuget https://www.nuget.org/packages/AsyncIt/ link https://github.com/oleg-shilo/AsyncIt/ author Oleg Shilo Generate async from sync or sync from async This is how you can use AsyncIt . The code that you start with is The code that you will use is The code that is generated is Code and pdf…
-
Deciding between implementations of Roslyn Code Generator for an enum retrieval
Aspire .NET Global Tool Extension (https://github.com/ignatandrei/aspireExtensions/blob/main/src/DotNetGlobalToolsExtensions/README.md ) supports installing a .NET Tool by name. To have more easy for me, I have created an enum ( int64 ) with tools that I want to install automatically . The enum is Flag composable ( 1,2,4 …) – and I want to find the Sum value in…
-
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 =…