Skip to content

Commit 0c6d429

Browse files
authored
Merge pull request #407 from ignatandrei/ConsoleAppFramework
2 parents e5c31b7 + 008d2ad commit 0c6d429

File tree

26 files changed

+3994
-16
lines changed

26 files changed

+3994
-16
lines changed

README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# RSCG - 231 Examples of Roslyn Source Code Generators / 14 created by Microsoft /
1+
# RSCG - 232 Examples of Roslyn Source Code Generators / 14 created by Microsoft /
22

3-
## Latest Update : 2025-10-01 => 01 October 2025
3+
## Latest Update : 2025-10-02 => 02 October 2025
44

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

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

2121
## Content
2222

23-
Those are the 231 Roslyn Source Code Generators that I have tested you can see and download source code example.
23+
Those are the 232 Roslyn Source Code Generators that I have tested you can see and download source code example.
2424
( including 14 from Microsoft )
25+
### 232. [ConsoleAppFramework](https://ignatandrei.github.io/RSCG_Examples/v2/docs/ConsoleAppFramework) , in the [Console](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#console) category
26+
27+
Generated on : 2025-10-02 => 02 October 2025
28+
29+
<details>
30+
<summary>Expand</summary>
31+
32+
33+
34+
Author: Cysharp, Inc.
35+
36+
Micro-framework for console applications.
37+
38+
Nuget: [https://www.nuget.org/packages/ConsoleAppFramework/](https://www.nuget.org/packages/ConsoleAppFramework/)
39+
40+
41+
Link: [https://ignatandrei.github.io/RSCG_Examples/v2/docs/ConsoleAppFramework](https://ignatandrei.github.io/RSCG_Examples/v2/docs/ConsoleAppFramework)
42+
43+
Source: [https://github.com/Cysharp/ConsoleAppFramework](https://github.com/Cysharp/ConsoleAppFramework)
44+
45+
</details>
46+
2547
### 231. [kli.Localize](https://ignatandrei.github.io/RSCG_Examples/v2/docs/kli.Localize) , in the [FilesToCode](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#filestocode) category
2648

2749
Generated on : 2025-10-01 => 01 October 2025

later.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Just later
22

3-
## Latest Update : 2025-10-01 => 01 October 2025
3+
## Latest Update : 2025-10-02 => 02 October 2025
44

55

66

v2/Generator/MultiGeneratorV2.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public string[] SourceNoRSCG()
148148

149149
text = text.Replace("(MinimalApis.FluentValidation.md)", $"({d.Generator!.Source}/MinimalApis.FluentValidation.md)");
150150
text = text.Replace("(MinimalApis.Discovery.md)", $"({d.Generator!.Source}/MinimalApis.Discovery.md)");
151-
151+
text = text.Replace("<details><summary>Full generated source code</summary>", "<details><summary>Full generated source code</summary></details>");
152152
text = text.Replace("(docs/Map.md)", $"({d.Generator!.Source}/docs/Map.md)");
153153
text = text.Replace("(/src/PlantUmlClassDiagramGenerator.SourceGenerator)", $"({d.Generator!.Source}/src/PlantUmlClassDiagramGenerator.SourceGenerator)");
154154
text = text.Replace("(./README.zh.md)", $"({d.Generator!.Source}/README.zh.md)");
@@ -931,6 +931,9 @@ private async Task<bool> WroteDocusaurus(Description it, string pathDocusaurus)
931931
var templateScriban = Scriban.Template.Parse(template);
932932
var output = templateScriban.Render(new {Description=it,HasFilesGenerated, otherDesc, category}, member => member.Name);
933933
output = output
934+
.Replace("[IParsable<TSelf>.TryParse]", "[IParsable&lt;TSelf&gt;.TryParse]")
935+
.Replace("[ISpanParsable<TSelf>.TryParse]", "[ISpanParsable&lt;TSelf&gt;.TryParse]")
936+
.Replace("```\r\n</details>\r\n","\r\n\r\n```")
934937
.Replace("a Result<TTarget> type", "a Result&lt;TTarget&gt; type")
935938
.Replace("(e.g., Converter<T>)", "(e.g., Converter&lt;T&gt;)")
936939
.Replace("width=\"400\">", "width=\"400\" />")

v2/Generator/all.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,4 @@ Nr,Key,Source,Category
230230
229,Facet, https://github.com/Tim-Maes/Facet/,Mapper
231231
230,Unflat, https://github.com/pstlnce/unflat,Database
232232
231,kli.Localize, https://github.com/kl1mm/localize,FilesToCode
233+
232,ConsoleAppFramework, https://github.com/Cysharp/ConsoleAppFramework,Console

v2/RSCGExamplesData/GeneratorDataRec.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,5 +1395,11 @@
13951395
"Category": 8,
13961396
"dtStart": "2025-10-01T00:00:00",
13971397
"show": true
1398+
},
1399+
{
1400+
"ID":"ConsoleAppFramework",
1401+
"Category":34,
1402+
"dtStart": "2025-10-02T00:00:00",
1403+
"show": true
13981404
}
13991405
]
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
2+
<h1>RSCG nr 232 : ConsoleAppFramework</h1>
3+
4+
<h2>Info</h2>
5+
Nuget : <a href="https://www.nuget.org/packages/ConsoleAppFramework/" target="_blank">https://www.nuget.org/packages/ConsoleAppFramework/</a>
6+
7+
<p>You can find more details at : <a href="https://github.com/Cysharp/ConsoleAppFramework" target="_blank"> https://github.com/Cysharp/ConsoleAppFramework</a></p>
8+
9+
<p>Author :Cysharp, Inc.</p>
10+
11+
<p>Source: <a href="https://github.com/Cysharp/ConsoleAppFramework" target="_blank">https://github.com/Cysharp/ConsoleAppFramework</a> </p>
12+
13+
<h2>About</h2>
14+
15+
Generating console parser for functions
16+
17+
<h2>
18+
How to use
19+
</h2>
20+
<h3>
21+
Add reference to the <a href="https://www.nuget.org/packages/ConsoleAppFramework/" target="_blank">ConsoleAppFramework</a> in the csproj
22+
</h3>
23+
<img src="images/ConsoleAppFramework/ConsoleDemo.csproj.png" width="580" height="580" />
24+
25+
<h3>This was for me the <b>starting</b> code</h3>
26+
27+
<br />
28+
I have <b>coded</b> the file Program.cs
29+
<br />
30+
<img src="images/ConsoleAppFramework/csFiles/Program.cs.png" width="580" height="580" />
31+
<hr />
32+
<h3>And here are the <i>generated</i> files</h3>
33+
34+
<br />
35+
The file <i>generated</i> is ConsoleApp.Builder.g.cs
36+
<br />
37+
<img src="images/ConsoleAppFramework/generated/ConsoleApp.Builder.g.cs.png" width="580" height="580" />
38+
39+
<br />
40+
The file <i>generated</i> is ConsoleApp.Builder.Help.g.cs
41+
<br />
42+
<img src="images/ConsoleAppFramework/generated/ConsoleApp.Builder.Help.g.cs.png" width="580" height="580" />
43+
44+
<br />
45+
The file <i>generated</i> is ConsoleApp.Builder.Run.g.cs
46+
<br />
47+
<img src="images/ConsoleAppFramework/generated/ConsoleApp.Builder.Run.g.cs.png" width="580" height="580" />
48+
49+
<br />
50+
The file <i>generated</i> is ConsoleApp.g.cs
51+
<br />
52+
<img src="images/ConsoleAppFramework/generated/ConsoleApp.g.cs.png" width="580" height="580" />
53+
54+
<p>
55+
You can download the code and this page as pdf from
56+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/ConsoleAppFramework'>
57+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/ConsoleAppFramework
58+
</a>
59+
</p>
60+
61+
62+
<p>
63+
You can see the whole list at
64+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
65+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
66+
</a>
67+
</p>
68+

v2/book/list.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</head>
1818
<body>
1919
<h1>
20-
This is the list of 231 RSCG with examples =>
20+
This is the list of 232 RSCG with examples =>
2121
</h1>
2222

2323
<table >
@@ -950,6 +950,10 @@ <h1>
950950
<td>231</td>
951951
<td><a href="examples/kli.Localize.html">kli.Localize</a></td>
952952
</tr>
953+
<tr>
954+
<td>232</td>
955+
<td><a href="examples/ConsoleAppFramework.html">ConsoleAppFramework</a></td>
956+
</tr>
953957
</table>
954958

955959

v2/book/pandocHTML.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ input-files:
245245
- examples/Facet.html
246246
- examples/Unflat.html
247247
- examples/kli.Localize.html
248+
- examples/ConsoleAppFramework.html
248249

249250
# or you may use input-file: with a single value
250251
# defaults:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"generator":{
3+
"name":"ConsoleAppFramework",
4+
"nuget":[
5+
"https://www.nuget.org/packages/ConsoleAppFramework/"
6+
],
7+
"link":"https://github.com/Cysharp/ConsoleAppFramework",
8+
"author":"Cysharp, Inc.",
9+
"source":"https://github.com/Cysharp/ConsoleAppFramework"
10+
},
11+
"data":{
12+
"goodFor":["Generating console parser for functions"],
13+
"csprojDemo":"ConsoleDemo.csproj",
14+
"csFiles":["Program.cs"],
15+
"excludeDirectoryGenerated":[""],
16+
"includeAdditionalFiles":[""]
17+
},
18+
"links":{
19+
"blog":"",
20+
"video":""
21+
}
22+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Micro-framework for console applications.

0 commit comments

Comments
 (0)