-
-
Notifications
You must be signed in to change notification settings - Fork 6
first #461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
first #461
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # Just later | ||
|
|
||
| ## Latest Update : 2026-03-18 => 18 March 2026 | ||
| ## Latest Update : 2026-04-01 => 01 April 2026 | ||
|
|
||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
|
|
||
| { | ||
| "$schema": "https://aka.ms/codetour-schema", | ||
| "title": "TypedPaths", | ||
| "steps": | ||
| [ | ||
| { | ||
| "file": "rscg_examples/TypedPaths/src/FolderToCode/FolderToCode.csproj", | ||
| "description": "First, we add Nuget [TypedPaths.Generator](https://www.nuget.org/packages/TypedPaths.Generator/) in csproj ", | ||
| "pattern": "TypedPaths.Generator" | ||
| } | ||
|
|
||
| ,{ | ||
| "file": "rscg_examples/TypedPaths/src/FolderToCode/Program.cs", | ||
| "description": "File Program.cs \r\n>> dotnet run --project rscg_examples/TypedPaths/src/FolderToCode/FolderToCode.csproj ", | ||
| "pattern": "this is the code" | ||
| } | ||
|
|
||
|
|
||
| ,{ | ||
| "file": "rscg_examples/TypedPaths/src/FolderToCode/obj/GX/TypedPaths.Generator/TypedPaths.Generator.Generator/TypedPathsAttribute.g.cs", | ||
| "description": "Generated File 2 from 2 : TypedPathsAttribute.g.cs ", | ||
| "line": 1 | ||
| } | ||
|
|
||
| ,{ | ||
| "file": "rscg_examples/TypedPaths/src/FolderToCode/obj/GX/TypedPaths.Generator/TypedPaths.Generator.Generator/TypedPaths.Src.g.cs", | ||
| "description": "Generated File 1 from 2 : TypedPaths.Src.g.cs ", | ||
| "line": 1 | ||
| } | ||
|
|
||
| ], | ||
|
|
||
| "ref": "main" | ||
|
|
||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -339,7 +339,17 @@ public async Task<long> GrabDescriptionFromNuget() | |||||
| Console.WriteLine($"grab data from {url}"); | ||||||
| var response = await _client.GetAsync(url); | ||||||
| var data=await response.Content.ReadAsStringAsync(); | ||||||
| var answer= JsonDocument.Parse(data); | ||||||
| Console.WriteLine($"{namePackage}: {data}"); | ||||||
|
||||||
| Console.WriteLine($"{namePackage}: {data}"); | |
| Console.WriteLine($"{namePackage}: status {(int)response.StatusCode} ({response.StatusCode}), length {data.Length} chars"); |
Copilot
AI
Apr 2, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JsonDocument implements IDisposable, but answer is not disposed here. Use a using declaration (using var answer = JsonDocument.Parse(data);) so buffers are released promptly, especially since this runs in a loop across many packages.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
|
|
||
| <h1>RSCG nr 259 : TypedPaths</h1> | ||
|
|
||
| <h2>Info</h2> | ||
| Nuget : <a href="https://www.nuget.org/packages/TypedPaths/" target="_blank">https://www.nuget.org/packages/TypedPaths/</a> | ||
|
|
||
|
Comment on lines
+4
to
+6
|
||
| <p>You can find more details at : <a href="https://github.com/AlexChim1231/TypedPaths/" target="_blank"> https://github.com/AlexChim1231/TypedPaths/</a></p> | ||
|
|
||
| <p>Author :Alex Chim</p> | ||
|
|
||
| <p>Source: <a href="https://github.com/AlexChim1231/TypedPaths/" target="_blank">https://github.com/AlexChim1231/TypedPaths/</a> </p> | ||
|
|
||
| <h2>About</h2> | ||
|
|
||
| Generating strongly-typed paths for file system operations in C# projects. | ||
|
|
||
| <h2> | ||
| How to use | ||
| </h2> | ||
| <h3> | ||
| Add reference to the <a href="https://www.nuget.org/packages/TypedPaths/" target="_blank">TypedPaths</a> in the csproj | ||
| </h3> | ||
| <img src="images/TypedPaths/FolderToCode.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/TypedPaths/csFiles/Program.cs.png" width="580" height="580" /> | ||
| <hr /> | ||
| <h3>And here are the <i>generated</i> files</h3> | ||
|
|
||
| <br /> | ||
| The file <i>generated</i> is TypedPaths.Src.g.cs | ||
| <br /> | ||
| <img src="images/TypedPaths/generated/TypedPaths.Src.g.cs.png" width="580" height="580" /> | ||
|
|
||
| <br /> | ||
| The file <i>generated</i> is TypedPathsAttribute.g.cs | ||
| <br /> | ||
| <img src="images/TypedPaths/generated/TypedPathsAttribute.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/TypedPaths'> | ||
| https://ignatandrei.github.io/RSCG_Examples/v2/docs/TypedPaths | ||
| </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> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "generator":{ | ||
| "name":"TypedPaths", | ||
| "nuget":[ | ||
| "https://www.nuget.org/packages/TypedPaths.Generator/" | ||
| ], | ||
| "link":"https://github.com/AlexChim1231/TypedPaths/", | ||
| "author":"Alex Chim", | ||
| "source":"https://github.com/AlexChim1231/TypedPaths/" | ||
| }, | ||
| "data":{ | ||
| "goodFor":["Generating strongly-typed paths for file system operations in C# projects."], | ||
| "csprojDemo":"FolderToCode.csproj", | ||
| "csFiles":["Program.cs"], | ||
| "excludeDirectoryGenerated":[""], | ||
| "includeAdditionalFiles":[""] | ||
| }, | ||
| "links":{ | ||
| "blog":"", | ||
| "video":"" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| A Roslyn source generator that turns a folder tree into strongly typed path constants at compile time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This CodeTour step uses
"pattern": "this is the code", but the referenced Program.cs in this PR doesn’t contain that text, so the step likely won’t resolve/highlight anything. Update the pattern to match actual content (e.g.,TypedPaths.Src) or switch to aline-based step.