Skip to content

Commit

Permalink
with data
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatandrei committed Oct 27, 2024
1 parent 5d9568d commit ec2e086
Show file tree
Hide file tree
Showing 63 changed files with 2,108 additions and 441 deletions.
67 changes: 41 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# RSCG - 163 Examples of Roslyn Source Code Generators / 13 created by Microsoft /
# RSCG - 164 Examples of Roslyn Source Code Generators / 13 created by Microsoft /

## Latest Update : 2024-10-26 => 26 October 2024
## Latest Update : 2024-10-27 => 27 October 2024

If you want to see examples with code, please click ***[List V2](https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG)***

Expand All @@ -20,8 +20,30 @@ If you want to be notified each time I add a new RSCG example , please click htt

## Content

Those are the 163 Roslyn Source Code Generators that I have tested you can see and download source code example.
Those are the 164 Roslyn Source Code Generators that I have tested you can see and download source code example.
( including 13 from Microsoft )
### 164. [RazorSlices](https://ignatandrei.github.io/RSCG_Examples/v2/docs/RazorSlices) , in the [Templating](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#templating) category

Generated on : 2024-10-27 => 27 October 2024

<details>
<summary>Expand</summary>



Author: Damiam Edwards

Package Description

Nuget: [https://www.nuget.org/packages/RazorSlices/](https://www.nuget.org/packages/RazorSlices/)


Link: [https://ignatandrei.github.io/RSCG_Examples/v2/docs/RazorSlices](https://ignatandrei.github.io/RSCG_Examples/v2/docs/RazorSlices)

Source: [https://github.com/DamianEdwards/RazorSlices](https://github.com/DamianEdwards/RazorSlices)

</details>

### 163. [TypedSignalR.Client](https://ignatandrei.github.io/RSCG_Examples/v2/docs/TypedSignalR.Client) , in the [SignalR](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#signalr) category

Generated on : 2024-10-26 => 26 October 2024
Expand Down Expand Up @@ -4029,119 +4051,112 @@ Why I have not tested : too complicated for me, need help
https://github.com/ignatandrei/RSCG_Examples/issues/new?title=Pure.DI&body=https://github.com/DevTeam/Pure.DI


38) [RazorSlices]( https://github.com/DamianEdwards/RazorSlices) , https://github.com/DamianEdwards/RazorSlices

Why I have not tested : later

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=RazorSlices&body=https://github.com/DamianEdwards/RazorSlices


39) [schema]( https://github.com/MeltyPlayer/Schema) , https://github.com/MeltyPlayer/Schema
38) [schema]( https://github.com/MeltyPlayer/Schema) , https://github.com/MeltyPlayer/Schema

Why I have not tested : too complicated for me, need help

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=schema&body=https://github.com/MeltyPlayer/Schema


40) [SerdeDn]( https://github.com/serdedotnet/serde) , https://github.com/serdedotnet/serde
39) [SerdeDn]( https://github.com/serdedotnet/serde) , https://github.com/serdedotnet/serde

Why I have not tested : serializer. Done by MSFT with System.Text.Json

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=SerdeDn&body=https://github.com/serdedotnet/serde


41) [SogePoco]( https://github.com/d-p-y/SogePoco) , https://github.com/d-p-y/SogePoco
40) [SogePoco]( https://github.com/d-p-y/SogePoco) , https://github.com/d-p-y/SogePoco

Why I have not tested : too complicated for me, need help

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=SogePoco&body=https://github.com/d-p-y/SogePoco


42) [SourceCrafter.HttpServiceClientGenerator]( https://github.com/pedro-gilmora/SourceCrafter.HttpServiceClientGenerator/) , https://github.com/pedro-gilmora/SourceCrafter.HttpServiceClientGenerator/
41) [SourceCrafter.HttpServiceClientGenerator]( https://github.com/pedro-gilmora/SourceCrafter.HttpServiceClientGenerator/) , https://github.com/pedro-gilmora/SourceCrafter.HttpServiceClientGenerator/

Why I have not tested : later

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=SourceCrafter.HttpServiceClientGenerator&body=https://github.com/pedro-gilmora/SourceCrafter.HttpServiceClientGenerator/


43) [ST.NSwag.ServerSourceGenerator]( https://github.com/s-tarasov/ST.NSwag.ServerSourceGenerator) , https://github.com/s-tarasov/ST.NSwag.ServerSourceGenerator
42) [ST.NSwag.ServerSourceGenerator]( https://github.com/s-tarasov/ST.NSwag.ServerSourceGenerator) , https://github.com/s-tarasov/ST.NSwag.ServerSourceGenerator

Why I have not tested : swagger,need help

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=ST.NSwag.ServerSourceGenerator&body=https://github.com/s-tarasov/ST.NSwag.ServerSourceGenerator


44) [StrongInject]( https://github.com/YairHalberstadt/stronginject/) , https://github.com/YairHalberstadt/stronginject/
43) [StrongInject]( https://github.com/YairHalberstadt/stronginject/) , https://github.com/YairHalberstadt/stronginject/

Why I have not tested : too complicated for me, need help

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=StrongInject&body=https://github.com/YairHalberstadt/stronginject/


45) [TeuJson]( https://github.com/Terria-K/TeuJson) , https://github.com/Terria-K/TeuJson
44) [TeuJson]( https://github.com/Terria-K/TeuJson) , https://github.com/Terria-K/TeuJson

Why I have not tested : json a class, was done in System.Text.Json

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=TeuJson&body=https://github.com/Terria-K/TeuJson


46) [Tinyhand]( https://github.com/archi-Doc/Tinyhand) , https://github.com/archi-Doc/Tinyhand
45) [Tinyhand]( https://github.com/archi-Doc/Tinyhand) , https://github.com/archi-Doc/Tinyhand

Why I have not tested : tried, need documentation

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=Tinyhand&body=https://github.com/archi-Doc/Tinyhand


47) [Tortuga.Shipwright]( https://github.com/TortugaResearch/Tortuga.Shipwright) , https://github.com/TortugaResearch/Tortuga.Shipwright
46) [Tortuga.Shipwright]( https://github.com/TortugaResearch/Tortuga.Shipwright) , https://github.com/TortugaResearch/Tortuga.Shipwright

Why I have not tested : too complicated for me, need help

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=Tortuga.Shipwright&body=https://github.com/TortugaResearch/Tortuga.Shipwright


48) [TupleOverloadGenerator]( https://github.com/ProphetLamb/TupleOverloadGenerator) , https://github.com/ProphetLamb/TupleOverloadGenerator
47) [TupleOverloadGenerator]( https://github.com/ProphetLamb/TupleOverloadGenerator) , https://github.com/ProphetLamb/TupleOverloadGenerator

Why I have not tested : too complicated for me, need help

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=TupleOverloadGenerator&body=https://github.com/ProphetLamb/TupleOverloadGenerator


49) [TypealizR]( https://github.com/earloc/TypealizR) , https://github.com/earloc/TypealizR
48) [TypealizR]( https://github.com/earloc/TypealizR) , https://github.com/earloc/TypealizR

Why I have not tested : depends on Microsoft.Extensions.Localization

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=TypealizR&body=https://github.com/earloc/TypealizR


50) [UnitTestBlazor]( https://github.com/bUnit-dev/bUnit) , https://github.com/bUnit-dev/bUnit
49) [UnitTestBlazor]( https://github.com/bUnit-dev/bUnit) , https://github.com/bUnit-dev/bUnit

Why I have not tested : issue opened

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=UnitTestBlazor&body=https://github.com/bUnit-dev/bUnit


51) [ValueLink]( https://github.com/archi-Doc/ValueLink) , https://github.com/archi-Doc/ValueLink
50) [ValueLink]( https://github.com/archi-Doc/ValueLink) , https://github.com/archi-Doc/ValueLink

Why I have not tested : too complicated for me, need help

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=ValueLink&body=https://github.com/archi-Doc/ValueLink


52) [VisitorPatternGenerator]( https://github.com/hikarin522/VisitorPatternGenerator/) , https://github.com/hikarin522/VisitorPatternGenerator/
51) [VisitorPatternGenerator]( https://github.com/hikarin522/VisitorPatternGenerator/) , https://github.com/hikarin522/VisitorPatternGenerator/

Why I have not tested : issue opened

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=VisitorPatternGenerator&body=https://github.com/hikarin522/VisitorPatternGenerator/


53) [Visor]( https://github.com/Tinkoff/Visor) , https://github.com/Tinkoff/Visor
52) [Visor]( https://github.com/Tinkoff/Visor) , https://github.com/Tinkoff/Visor

Why I have not tested : too complicated for me, need help

https://github.com/ignatandrei/RSCG_Examples/issues/new?title=Visor&body=https://github.com/Tinkoff/Visor


54) [WrapperValueObject]( https://github.com/martinothamar/WrapperValueObject) , https://github.com/martinothamar/WrapperValueObject
53) [WrapperValueObject]( https://github.com/martinothamar/WrapperValueObject) , https://github.com/martinothamar/WrapperValueObject

Why I have not tested : not maintained as in readme

Expand Down
2 changes: 2 additions & 0 deletions v2/Generator/all.csv
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,5 @@ Nr,Key,Source,Category
160,Dusharp, https://github.com/kolebynov/Dusharp,FunctionalProgramming
161,Immediate.Handlers, https://github.com/immediateplatform/Immediate.Handlers,Mediator
162,MinimalHelpers.Routing.Analyzers, https://github.com/marcominerva/MinimalHelpers,API
163,TypedSignalR.Client, https://github.com/nenoNaninu/TypedSignalR.Client,SignalR
164,RazorSlices, https://github.com/DamianEdwards/RazorSlices,Templating
3 changes: 1 addition & 2 deletions v2/GeneratorData/GeneratorData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
<ItemGroup>
<PackageReference Include="FileBaseContext" Version="4.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.0" />
</ItemGroup>

</ItemGroup>
</Project>
1 change: 0 additions & 1 deletion v2/GeneratorVideo/GeneratorVideo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<PropertyGroup>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
Expand Down
7 changes: 7 additions & 0 deletions v2/RSCGExamplesData/GeneratorDataRec.json
Original file line number Diff line number Diff line change
Expand Up @@ -979,4 +979,11 @@
"dtStart": "2024-10-26T00:00:00",
"show": true
}
,
{
"ID": "RazorSlices",
"Category": 12,
"dtStart": "2024-10-27T00:00:00",
"show": true
}
]
5 changes: 0 additions & 5 deletions v2/RSCGExamplesData/NoExample.json
Original file line number Diff line number Diff line change
Expand Up @@ -799,11 +799,6 @@
"name":"Minerals.AutoCQRS https://github.com/SzymonHalucha/Minerals.AutoCQRS",
"why":"later"
},
{
"ID": 166,
"name":"RazorSlices https://github.com/DamianEdwards/RazorSlices",
"why":"later"
},
{
"ID": 167,
"name":"observable https://github.com/notanaverageman/Bindables",
Expand Down
5 changes: 5 additions & 0 deletions v2/book/examples/Dusharp.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ <h3>And here are the <i>generated</i> files</h3>
<br />
<img src="images/Dusharp/generated/UnionTypesDemo.ResultSave.Dusharp.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is UnionTypesDemo.ResultSave.union.g.cs
<br />
<img src="images/Dusharp/generated/UnionTypesDemo.ResultSave.union.g.cs.png" width="580" height="580" />

<p>
You can download the code and this page as pdf from
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/Dusharp'>
Expand Down
5 changes: 5 additions & 0 deletions v2/book/examples/PlantUmlClassDiagramGenerator.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ <h3>And here are the <i>generated</i> files</h3>
<br />
<img src="images/PlantUmlClassDiagramGenerator/generated/Attributes.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Person.puml
<br />
<img src="images/PlantUmlClassDiagramGenerator/generated/Person.puml.png" width="580" height="580" />

<p>
You can download the code and this page as pdf from
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/PlantUmlClassDiagramGenerator'>
Expand Down
75 changes: 75 additions & 0 deletions v2/book/examples/RazorSlices.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@

<h1>RSCG nr 164 : RazorSlices</h1>

<h2>Info</h2>
Nuget : <a href="https://www.nuget.org/packages/RazorSlices/" target="_blank">https://www.nuget.org/packages/RazorSlices/</a>

<p>You can find more details at : <a href="https://github.com/DamianEdwards/RazorSlices" target="_blank"> https://github.com/DamianEdwards/RazorSlices</a></p>

<p>Author :Damiam Edwards</p>

<p>Source : <a href="https://github.com/DamianEdwards/RazorSlices" target="_blank">https://github.com/DamianEdwards/RazorSlices</a> </p>

<h2>About</h2>

Generating html from razor templates. Attention: generates IHttpResult, not html string.

<h2>
How to use
</h2>
<h3>
Add reference to the <a href="https://www.nuget.org/packages/RazorSlices/" target="_blank">RazorSlices</a> in the csproj
</h3>
<img src="images/RazorSlices/RazorDemoSlices.csproj.png" width="580" height="580" />

<h3>This was for me the <b>starting</b> code</h3>

<br />
I have <b>coded</b> the file Program.cs
<br />
<img src="images/RazorSlices/csFiles/Program.cs.png" width="580" height="580" />
<hr />

<br />
I have <b>coded</b> the file PersonHTML.cshtml
<br />
<img src="images/RazorSlices/csFiles/PersonHTML.cshtml.png" width="580" height="580" />
<hr />

<br />
I have <b>coded</b> the file Person.cs
<br />
<img src="images/RazorSlices/csFiles/Person.cs.png" width="580" height="580" />
<hr />
<h3>And here are the <i>generated</i> files</h3>

<br />
The file <i>generated</i> is Slices_PersonHTML_cshtml.g.cs
<br />
<img src="images/RazorSlices/generated/Slices_PersonHTML_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is Slices__ViewImports_cshtml.g.cs
<br />
<img src="images/RazorSlices/generated/Slices__ViewImports_cshtml.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is RazorDemoSlices.RazorSliceProxies.g.cs
<br />
<img src="images/RazorSlices/generated/RazorDemoSlices.RazorSliceProxies.g.cs.png" width="580" height="580" />

<p>
You can download the code and this page as pdf from
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/RazorSlices'>
https://ignatandrei.github.io/RSCG_Examples/v2/docs/RazorSlices
</a>
</p>


<p>
You can see the whole list at
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
</a>
</p>

6 changes: 5 additions & 1 deletion v2/book/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body>
<h1>
This is the list of 163 RSCG with examples =>
This is the list of 164 RSCG with examples =>
</h1>

<table >
Expand Down Expand Up @@ -678,6 +678,10 @@ <h1>
<td>163</td>
<td><a href="examples/TypedSignalR.Client.html">TypedSignalR.Client</a></td>
</tr>
<tr>
<td>164</td>
<td><a href="examples/RazorSlices.html">RazorSlices</a></td>
</tr>
</table>


Expand Down
1 change: 1 addition & 0 deletions v2/book/pandocHTML.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ input-files:
- examples/Immediate.Handlers.html
- examples/MinimalHelpers.Routing.Analyzers.html
- examples/TypedSignalR.Client.html
- examples/RazorSlices.html

# or you may use input-file: with a single value
# defaults:
Expand Down
14 changes: 10 additions & 4 deletions v2/rscg_examples/Dusharp/src/.tours/Dusharp.tour
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,33 @@
}


,{
"file": "UnionTypesDemo/obj/GX/Sera.TaggedUnion.Analyzers/Sera.TaggedUnion.Analyzers.Generators.UnionGenerator/UnionTypesDemo.ResultSave.union.g.cs",
"description": "Generated File 5 from 5 : UnionTypesDemo.ResultSave.union.g.cs ",
"line": 1
}

,{
"file": "UnionTypesDemo/obj/GX/Dusharp/Dusharp.UnionSourceGenerator/UnionTypesDemo.ResultSave.Dusharp.g.cs",
"description": "Generated File 4 from 4 : UnionTypesDemo.ResultSave.Dusharp.g.cs ",
"description": "Generated File 4 from 5 : UnionTypesDemo.ResultSave.Dusharp.g.cs ",
"line": 1
}

,{
"file": "UnionTypesDemo/obj/GX/Dusharp/Dusharp.UnionSourceGenerator/Dusharp.EmbeddedCode.UnionCaseAttribute.cs",
"description": "Generated File 3 from 4 : Dusharp.EmbeddedCode.UnionCaseAttribute.cs ",
"description": "Generated File 3 from 5 : Dusharp.EmbeddedCode.UnionCaseAttribute.cs ",
"line": 1
}

,{
"file": "UnionTypesDemo/obj/GX/Dusharp/Dusharp.UnionSourceGenerator/Dusharp.EmbeddedCode.UnionAttribute.cs",
"description": "Generated File 2 from 4 : Dusharp.EmbeddedCode.UnionAttribute.cs ",
"description": "Generated File 2 from 5 : Dusharp.EmbeddedCode.UnionAttribute.cs ",
"line": 1
}

,{
"file": "UnionTypesDemo/obj/GX/Dusharp/Dusharp.UnionSourceGenerator/Dusharp.EmbeddedCode.ExceptionUtils.cs",
"description": "Generated File 1 from 4 : Dusharp.EmbeddedCode.ExceptionUtils.cs ",
"description": "Generated File 1 from 5 : Dusharp.EmbeddedCode.ExceptionUtils.cs ",
"line": 1
}

Expand Down
Loading

0 comments on commit ec2e086

Please sign in to comment.