Skip to content

Commit f746ccd

Browse files
authored
Merge pull request #462 from ignatandrei/AssemblyMetadata
2 parents cf08505 + 771c11a commit f746ccd

27 files changed

Lines changed: 900 additions & 54 deletions

File tree

README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# RSCG - 259 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
1+
# RSCG - 260 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
22

3-
The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 259 Roslyn Source Code Generator (RSCG) examples. The system transforms individual RSCG projects into structured documentation with code examples and cross-referenced content with a searchable website and code example exports.
3+
The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 260 Roslyn Source Code Generator (RSCG) examples. The system transforms individual RSCG projects into structured documentation with code examples and cross-referenced content with a searchable website and code example exports.
44

55
This system serves as both a learning resource for .NET developers interested in source generators and an automated pipeline for maintaining up-to-date documentation about the RSCG ecosystem
66

7-
## Latest Update : 2026-04-01 => 01 April 2026
7+
## Latest Update : 2026-04-02 => 02 April 2026
88

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

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

2525
## Content
2626

27-
Those are the 259 Roslyn Source Code Generators that I have tested you can see and download source code example.
27+
Those are the 260 Roslyn Source Code Generators that I have tested you can see and download source code example.
2828
( including 16 from Microsoft )
29+
### 260. [AssemblyMetadata](https://ignatandrei.github.io/RSCG_Examples/v2/docs/AssemblyMetadata) , in the [EnhancementProject](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementproject) category
30+
31+
Generated on : 2026-04-02 => 02 April 2026
32+
33+
<details>
34+
<summary>Expand</summary>
35+
36+
37+
38+
Author: Benjamin Abt
39+
40+
Assembly Metadata Information
41+
42+
Nuget: [https://www.nuget.org/packages/AssemblyMetadata/](https://www.nuget.org/packages/AssemblyMetadata/)
43+
44+
45+
Link: [https://ignatandrei.github.io/RSCG_Examples/v2/docs/AssemblyMetadata](https://ignatandrei.github.io/RSCG_Examples/v2/docs/AssemblyMetadata)
46+
47+
Source: [https://github.com/BenjaminAbt/AssemblyMetadata](https://github.com/BenjaminAbt/AssemblyMetadata)
48+
49+
</details>
50+
2951
### 259. [TypedPaths](https://ignatandrei.github.io/RSCG_Examples/v2/docs/TypedPaths) , in the [FilesToCode](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#filestocode) category
3052

3153
Generated on : 2026-04-01 => 01 April 2026

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 : 2026-04-01 => 01 April 2026
3+
## Latest Update : 2026-04-02 => 02 April 2026
44

55

66

v2/.tours/AssemblyMetadata.tour

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
{
3+
"$schema": "https://aka.ms/codetour-schema",
4+
"title": "AssemblyMetadata",
5+
"steps":
6+
[
7+
{
8+
"file": "rscg_examples/AssemblyMetadata/src/DemoMeta/DemoMeta.csproj",
9+
"description": "First, we add Nuget [AssemblyMetadata](https://www.nuget.org/packages/AssemblyMetadata/) in csproj ",
10+
"pattern": "AssemblyMetadata"
11+
}
12+
13+
,{
14+
"file": "rscg_examples/AssemblyMetadata/src/DemoMeta/Program.cs",
15+
"description": "File Program.cs \r\n>> dotnet run --project rscg_examples/AssemblyMetadata/src/DemoMeta/DemoMeta.csproj ",
16+
"pattern": "this is the code"
17+
}
18+
19+
20+
,{
21+
"file": "rscg_examples/AssemblyMetadata/src/DemoMeta/obj/GX/BenjaminAbt.AssemblyMetadata/BenjaminAbt.AssemblyMetadata.AssemblyMetadataGenerator/AssemblyMetadataInfo.gen.cs",
22+
"description": "Generated File 1 from 1 : AssemblyMetadataInfo.gen.cs ",
23+
"line": 1
24+
}
25+
26+
],
27+
28+
"ref": "main"
29+
30+
}

v2/Generator/all.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,3 +258,4 @@ Nr,Key,Source,Category
258258
257,Pekspro.DataAnnotationValuesExtractor, https://github.com/pekspro/DataAnnotationValuesExtractor,EnhancementClass
259259
258,REslava.ResultFlow, https://github.com/reslava/nuget-package-reslava-result/,Documentation
260260
259,TypedPaths, https://github.com/AlexChim1231/TypedPaths/,FilesToCode
261+
260,AssemblyMetadata, https://github.com/BenjaminAbt/AssemblyMetadata,EnhancementProject

v2/RSCGExamplesData/GeneratorDataRec.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,5 +1570,11 @@
15701570
"Category": 8,
15711571
"dtStart": "2026-04-01T00:00:00",
15721572
"show": true
1573+
},
1574+
{
1575+
"ID":"AssemblyMetadata",
1576+
"Category": 1,
1577+
"dtStart": "2026-04-02T00:00:00",
1578+
"show": true
15731579
}
15741580
]
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
2+
<h1>RSCG nr 260 : AssemblyMetadata</h1>
3+
4+
<h2>Info</h2>
5+
Nuget : <a href="https://www.nuget.org/packages/AssemblyMetadata/" target="_blank">https://www.nuget.org/packages/AssemblyMetadata/</a>
6+
7+
<p>You can find more details at : <a href="https://github.com/BenjaminAbt/AssemblyMetadata" target="_blank"> https://github.com/BenjaminAbt/AssemblyMetadata</a></p>
8+
9+
<p>Author :Benjamin Abt</p>
10+
11+
<p>Source: <a href="https://github.com/BenjaminAbt/AssemblyMetadata" target="_blank">https://github.com/BenjaminAbt/AssemblyMetadata</a> </p>
12+
13+
<h2>About</h2>
14+
15+
Generate date time based metadata for assemblies.
16+
17+
<h2>
18+
How to use
19+
</h2>
20+
<h3>
21+
Add reference to the <a href="https://www.nuget.org/packages/AssemblyMetadata/" target="_blank">AssemblyMetadata</a> in the csproj
22+
</h3>
23+
<img src="images/AssemblyMetadata/DemoMeta.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/AssemblyMetadata/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 AssemblyMetadataInfo.gen.cs
36+
<br />
37+
<img src="images/AssemblyMetadata/generated/AssemblyMetadataInfo.gen.cs.png" width="580" height="580" />
38+
39+
<p>
40+
You can download the code and this page as pdf from
41+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/AssemblyMetadata'>
42+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/AssemblyMetadata
43+
</a>
44+
</p>
45+
46+
47+
<p>
48+
You can see the whole list at
49+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
50+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
51+
</a>
52+
</p>
53+

v2/book/examples/TypedPaths.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h1>RSCG nr 259 : TypedPaths</h1>
33

44
<h2>Info</h2>
5-
Nuget : <a href="https://www.nuget.org/packages/TypedPaths/" target="_blank">https://www.nuget.org/packages/TypedPaths/</a>
5+
Nuget : <a href="https://www.nuget.org/packages/TypedPaths.Generator/" target="_blank">https://www.nuget.org/packages/TypedPaths.Generator/</a>
66

77
<p>You can find more details at : <a href="https://github.com/AlexChim1231/TypedPaths/" target="_blank"> https://github.com/AlexChim1231/TypedPaths/</a></p>
88

@@ -18,7 +18,7 @@ <h2>
1818
How to use
1919
</h2>
2020
<h3>
21-
Add reference to the <a href="https://www.nuget.org/packages/TypedPaths/" target="_blank">TypedPaths</a> in the csproj
21+
Add reference to the <a href="https://www.nuget.org/packages/TypedPaths.Generator/" target="_blank">TypedPaths</a> in the csproj
2222
</h3>
2323
<img src="images/TypedPaths/FolderToCode.csproj.png" width="580" height="580" />
2424

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 259 RSCG with examples =>
20+
This is the list of 260 RSCG with examples =>
2121
</h1>
2222

2323
<table >
@@ -1062,6 +1062,10 @@ <h1>
10621062
<td>259</td>
10631063
<td><a href="examples/TypedPaths.html">TypedPaths</a></td>
10641064
</tr>
1065+
<tr>
1066+
<td>260</td>
1067+
<td><a href="examples/AssemblyMetadata.html">AssemblyMetadata</a></td>
1068+
</tr>
10651069
</table>
10661070

10671071

v2/book/pandocHTML.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ input-files:
273273
- examples/Pekspro.DataAnnotationValuesExtractor.html
274274
- examples/REslava.ResultFlow.html
275275
- examples/TypedPaths.html
276+
- examples/AssemblyMetadata.html
276277

277278
# or you may use input-file: with a single value
278279
# defaults:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"generator":{
3+
"name":"AssemblyMetadata",
4+
"nuget":[
5+
"https://www.nuget.org/packages/AssemblyMetadata/"
6+
],
7+
"link":"https://github.com/BenjaminAbt/AssemblyMetadata",
8+
"author":"Benjamin Abt",
9+
"source":"https://github.com/BenjaminAbt/AssemblyMetadata"
10+
},
11+
"data":{
12+
"goodFor":["Generate date time based metadata for assemblies."],
13+
"csprojDemo":"DemoMeta.csproj",
14+
"csFiles":["Program.cs"],
15+
"excludeDirectoryGenerated":[""],
16+
"includeAdditionalFiles":[""]
17+
},
18+
"links":{
19+
"blog":"",
20+
"video":""
21+
}
22+
}

0 commit comments

Comments
 (0)