GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AlexHedley/dotnetbyexample: .NET By Example

BranchesTags
Open more actions menu

Latest commit

 

History

109 Commits
109 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
examples
examples
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

.NET By Example

.NET C# F# VB.NET License: MIT Dependabot Dependency-Check

Dependabot Updates Dependency Check

Content and build toolchain for .NET by Example, a site that teaches .NET (C#, F#, VB.NET) via annotated example programs/scripts.

Overview

The .NET by Example site is built by extracting code and comments from source files in 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.

The built public directory can be served by any static content system. The production site uses GitHub Pages, for example - https://alexhedley.github.io/dotnetbyexample/.

Inspired by Go by Example (Source)

examples

A 📂 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.

  • 📂examples

Please raise a new 💡Discussion with any ideas for another example, then MRs are welcome :).

src

  • 📂src

build

cd src

dotnet build --configuration Release

run

Locally

dotnet run --project src/dotnetbyexample/dotnetbyexample.csproj

src\dotnetbyexample\bin\Release\net10.0\dotnetbyexample.exe

docs

  • 📂docs

Dependencies

If 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 and I will update the scripts over time.

dotnet script

https://github.com/dotnet-script/dotnet-script

dotnet tool install -g dotnet-script

dotnet tool list -g

dotnet tool uninstall dotnet-script -g

About

.NET By Example

alexhedley.com/dotnetbyexample/

Topics

batchcsharpfsharpvb-net

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.