{"id":28508863,"url":"https://github.com/alexhedley/dotnetbyexample","last_synced_at":"2026-05-03T07:35:13.413Z","repository":{"id":292410379,"uuid":"980820458","full_name":"AlexHedley/dotnetbyexample","owner":"AlexHedley","description":".NET By Example","archived":false,"fork":false,"pushed_at":"2025-06-16T17:32:16.000Z","size":283,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T16:08:41.847Z","etag":null,"topics":["batch","csharp","fsharp","vb-net"],"latest_commit_sha":null,"homepage":"https://alexhedley.com/dotnetbyexample/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexHedley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-09T19:16:31.000Z","updated_at":"2025-06-16T17:32:19.000Z","dependencies_parsed_at":"2025-05-09T20:40:54.339Z","dependency_job_id":null,"html_url":"https://github.com/AlexHedley/dotnetbyexample","commit_stats":null,"previous_names":["alexhedley/dotnetbyexample"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexHedley/dotnetbyexample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexHedley%2Fdotnetbyexample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexHedley%2Fdotnetbyexample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexHedley%2Fdotnetbyexample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexHedley%2Fdotnetbyexample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexHedley","download_url":"https://codeload.github.com/AlexHedley/dotnetbyexample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexHedley%2Fdotnetbyexample/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263225859,"owners_count":23433585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["batch","csharp","fsharp","vb-net"],"created_at":"2025-06-08T22:00:47.195Z","updated_at":"2026-05-03T07:35:13.408Z","avatar_url":"https://github.com/AlexHedley.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET By Example\n\n[![.NET](https://img.shields.io/badge/.NET-%23512BD4.svg?style=for-the-badge\u0026logo=dotnet\u0026logoColor=white)](https://dotnet.microsoft.com/)\n[![C#](https://img.shields.io/badge/c%23-239120.svg?style=for-the-badge\u0026logo=c-sharp\u0026logoColor=white)](https://learn.microsoft.com/en-us/dotnet/csharp/)\n[![F#](https://img.shields.io/badge/F%23-3498DB?style=for-the-badge\u0026logo=fsharp\u0026logoColor=white)](https://fsharp.org)\n[![VB.NET](https://img.shields.io/badge/VB.NET-512BD4?style=for-the-badge\u0026logo=visualbasic\u0026logoColor=white)](https://learn.microsoft.com/en-us/dotnet/visual-basic/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg?style=for-the-badge)](LICENSE) \u003c!-- https://opensource.org/licenses/MIT --\u003e\n[![Dependabot](https://img.shields.io/badge/dependabot-025E8C?style=for-the-badge\u0026logo=dependabot\u0026logoColor=white)](https://github.com/AlexHedley/dotnetbyexample/security/dependabot)\n[![Dependency-Check](https://img.shields.io/badge/DependencyCheck-f78d0a.svg?style=for-the-badge\u0026logo=dependencycheck\u0026logoColor=white)](https://alexhedley.github.io/dotnetbyexample/reports/dependency-check-report.html)\n\n[![Dependabot Updates](https://github.com/AlexHedley/dotnetbyexample/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/AlexHedley/dotnetbyexample/actions/workflows/dependabot/dependabot-updates)\n[![Dependency Check](https://github.com/AlexHedley/dotnetbyexample/actions/workflows/depcheck.yml/badge.svg)](https://github.com/AlexHedley/dotnetbyexample/actions/workflows/depcheck.yml)\n\n\u003e Content and build toolchain for _.NET by Example_, a site that teaches .NET (C#, F#, VB.NET) via annotated example programs/scripts.\n\n## Overview\n\nThe .NET by Example site is built by extracting code and comments from source files in [examples](examples/) and rendering them using templates into a static public directory. The programs implementing this build process are in tools, along with dependencies specified in the [.csproj](src/dotnetbyexample/dotnetbyexample.csproj).\n\nThe built public directory can be served by any static content system. The production site uses [GitHub](https://github.com) [Pages](https://docs.github.com/en/pages), for example - https://alexhedley.github.io/dotnetbyexample/.\n\nInspired by [Go by Example](https://gobyexample.com/) ([Source](https://github.com/mmcgrana/gobyexample))\n\n## examples\n\nA 📂 folder containing a `.csx`, `.vb`, `.fs` (and `.bat` with run instructions) file complete with code and code comments is converted to a corresponding `.html` file.\n\n- 📂[examples](examples/)\n\nPlease raise a new 💡[Discussion](https://github.com/AlexHedley/dotnetbyexample/discussions/new?category=ideas) with any ideas for another example, then MRs are welcome :).\n\n## src\n\n- 📂[src](src/)\n\n## build\n\n`cd src`\n\n`dotnet build --configuration Release`\n\n## run\n\nLocally\n\n`dotnet run --project src/dotnetbyexample/dotnetbyexample.csproj`\n\n\u003e src\\dotnetbyexample\\bin\\Release\\net10.0\\dotnetbyexample.exe\n\n## docs\n\n- 📂[docs](docs/README.md)\n\n## Dependencies\n\nIf you wish to run the examples locally you can use `dotnet script`, although see [Announcing dotnet run app.cs – A simpler way to start with C# and .NET 10](https://devblogs.microsoft.com/dotnet/announcing-dotnet-run-app/) and I will update the scripts over time.\n\n**dotnet script**\n\nhttps://github.com/dotnet-script/dotnet-script\n\n`dotnet tool install -g dotnet-script`\n\n`dotnet tool list -g`\n\n`dotnet tool uninstall dotnet-script -g`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexhedley%2Fdotnetbyexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexhedley%2Fdotnetbyexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexhedley%2Fdotnetbyexample/lists"}