Skip to content

Commit 38cf843

Browse files
committed
added blazor
1 parent 8a52ba1 commit 38cf843

85 files changed

Lines changed: 62288 additions & 26 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

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

3-
## Latest Update : 2025-08-01 => 01 August 2025
3+
## Latest Update : 2025-08-02 => 02 August 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 212 Roslyn Source Code Generators that I have tested you can see and download source code example.
23+
Those are the 213 Roslyn Source Code Generators that I have tested you can see and download source code example.
2424
( including 14 from Microsoft )
25+
### 213. [Blazor.TSRuntime](https://ignatandrei.github.io/RSCG_Examples/v2/docs/Blazor.TSRuntime) , in the [Blazor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#blazor) category
26+
27+
Generated on : 2025-08-02 => 02 August 2025
28+
29+
<details>
30+
<summary>Expand</summary>
31+
32+
33+
34+
Author: Black White Yoshi
35+
36+
TSRuntime is an improved JSRuntime with automatic JS-module loading and caching, compile time errors instead of runtime errors and nice IntelliSense guidance.
37+
38+
Nuget: [https://www.nuget.org/packages/Blazor.TSRuntime/](https://www.nuget.org/packages/Blazor.TSRuntime/)
39+
40+
41+
Link: [https://ignatandrei.github.io/RSCG_Examples/v2/docs/Blazor.TSRuntime](https://ignatandrei.github.io/RSCG_Examples/v2/docs/Blazor.TSRuntime)
42+
43+
Source: [https://github.com/BlackWhiteYoshi/Blazor.TSRuntime](https://github.com/BlackWhiteYoshi/Blazor.TSRuntime)
44+
45+
</details>
46+
2547
### 212. [StackXML](https://ignatandrei.github.io/RSCG_Examples/v2/docs/StackXML) , in the [Serializer](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#serializer) category
2648

2749
Generated on : 2025-08-01 => 01 August 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-08-01 => 01 August 2025
3+
## Latest Update : 2025-08-02 => 02 August 2025
44

55

66

v2/Generator/MultiGeneratorV2.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ public string[] SourceNoRSCG()
172172
text = text.Replace("(CopyTo)", $"({d.Generator!.Source}/CopyTo");
173173
text=text.Replace("(./docs/BenchmarksResults)", $"({d.Generator!.Source}/docs/BenchmarksResults");
174174
text = text.Replace("(sg_example.png", $"({d.Generator!.Source}/sg_example.png");
175+
text = text.Replace("(Readme_md/", $"({d.Generator!.Source}Readme_md/");
175176
text = text.Replace("(README.md)", $"({d.Generator!.Source}README.md");
176177
text = text.Replace("(src/samples/ConsoleSample)", $"({d.Generator!.Source}src/samples/ConsoleSample");
177178
text = text.Replace("(src/Jab.Performance/)", $"({d.Generator!.Source}src/Jab.Performance/");
@@ -923,7 +924,12 @@ private async Task<bool> WroteDocusaurus(Description it, string pathDocusaurus)
923924
var template = await File.ReadAllTextAsync("DocusaurusExample.txt");
924925
var templateScriban = Scriban.Template.Parse(template);
925926
var output = templateScriban.Render(new {Description=it, otherDesc, category}, member => member.Name);
926-
927+
output = output
928+
.Replace(" { ", " \\{ ")
929+
.Replace(" } ", " \\} ")
930+
.Replace("Action<>", "Action&lt;&gt;")
931+
.Replace("Func<>", "Func&lt;&gt;")
932+
;
927933
string folderToWrite = Path.Combine(pathDocusaurus, "docs", "RSCG-Examples");
928934
ArgumentNullException.ThrowIfNull(it.Generator);
929935
string file = it.Generator.Name+ ".md";

v2/Generator/all.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,4 @@ Nr,Key,Source,Category
211211
210,AssemblyVersionInfo, https://github.com/BlackWhiteYoshi/AssemblyVersionInfo,EnhancementProject
212212
211,ShadowWriterNullobjects, https://github.com/StefanStolz/ShadowWriter,Interface
213213
212,StackXML, https://github.com/ZingBallyhoo/StackXML,Serializer
214+
213,Blazor.TSRuntime, https://github.com/BlackWhiteYoshi/Blazor.TSRuntime,Blazor

v2/RSCGExamplesData/GeneratorDataRec.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,5 +1280,11 @@
12801280
"Category": 16,
12811281
"dtStart": "2025-08-01T00:00:00",
12821282
"show": true
1283+
},
1284+
{
1285+
"ID":"Blazor.TSRuntime",
1286+
"Category": 21,
1287+
"dtStart": "2025-08-02T00:00:00",
1288+
"show": true
12831289
}
12841290
]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"generator":{
3+
"name":"Blazor.TSRuntime",
4+
"nuget":[
5+
"https://www.nuget.org/packages/Blazor.TSRuntime/"
6+
],
7+
"link":"https://github.com/BlackWhiteYoshi/Blazor.TSRuntime",
8+
"author":"Black White Yoshi",
9+
"source":"https://github.com/BlackWhiteYoshi/Blazor.TSRuntime"
10+
},
11+
"data":{
12+
"goodFor":["Generating C# Code for Blazor from javascript files"],
13+
"csprojDemo":"BlazorData.csproj",
14+
"csFiles":["Program.cs","tsruntime.json","Home.razor","Home.razor.js"],
15+
"excludeDirectoryGenerated":["Microsoft.CodeAnalysis.Razor.Compiler"],
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+
TSRuntime is an improved JSRuntime with automatic JS-module loading and caching, compile time errors instead of runtime errors and nice IntelliSense guidance.

0 commit comments

Comments
 (0)