News

GitHub Project Provides 300-Plus Samples of ASP.NET Core/Blazor Fundamentals

A GitHub project providing more than 300 code samples to illustrate ASP.NET Core fundamentals has amassed more than 4,100 stars.

The dodyg/practical-aspnetcore project comes from Dody Gunawinata, with the title "306 samples for ASP.NET Core 2.1, 2.2, 3.0 and 3.1 fundamentals."

The project got a boost when Microsoft's Scott Hanselman highlighted it in a blog post earlier this month.

"He has lots of small compartmentalized samples that show you everything from Hello World (with increasingly complex and interesting bits layered on top) to lower level samples around WebSockets and building URIs," Hanselman said of the project.

The repo is heavy on .NET Core 2.1 samples, but samples for the latest (and long-term support) .NET Core 3.1 are a "work in progress" in an "active branch" of the repo for converting the samples to v3.1. Called "Samples for ASP.NET Core 3.1 (WIP)," it was last updated three days ago (Feb. 24).

The popularity of the project and similar ones speak to the traction gained by Microsoft's open-source, cross-platform "Core" initiative that succeeds the aging, Windows-only .NET Framework. The ASP.NET Core side of things for web development is especially active, propelled by the popularity of Blazor, which lets .NET developers use C# in web development (both client- and server-side).

ASP.NET Core Fundamentals Samples
[Click on image for larger view.] ASP.NET Core Fundamentals Samples

And, indeed, the ASP.NET Core 3.1 work-in-progress branch already sports sections on Blazor Client Side (Web Assembly) and Blazor Server Side. Checking out the former reveals 18 offerings for the WebAssembly-based client-side effort, ranging from a Hello World incremental counter app ("The smallest Blazor app you can create") to Date Binding - EditForm ("Show an example of EditForm and its 6 input controls, including form validation").

"The goal of this project is to enable .NET programmers to learn the new ASP.NET Core stack from the ground up directly from code. There is so much power in the underlying ASP.NET Core stack. Don't miss them!" says the readme for the project headed by Gunawinata, who lurks on the DotNetStudyGroup/aspnetcore Gitter channel to help out with ASP.NET Core issues.

Gunawinata recommends using Visual Studio Code to play around with the samples, but Visual Studio 2019 works as well.

Hanselman also invited his readers to contribute to the open source project. "I know Dody would appreciate the help and this is a great way for you to get involved in open source AND learn a little about ASP.NET. Check out the Contributor Guidelines! As they say, 'There is no sample that is too small!'"

Hanselman has been actively promoting training materials, having last fall called attention to a months-long project to provide entry-level instructional videos on all things .NET. That call-out was duplicated soon after by James Montemagno, who touted counterpart Xamarin videos, with some Python thrown in.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Mastering Blazor Authentication and Authorization

    At the Visual Studio Live! @ Microsoft HQ developer conference set for August, Rockford Lhotka will explain the ins and outs of authentication across Blazor Server, WebAssembly, and .NET MAUI Hybrid apps, and show how to use identity and claims to customize application behavior through fine-grained authorization.

  • Linear Support Vector Regression from Scratch Using C# with Evolutionary Training

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the linear support vector regression (linear SVR) technique, where the goal is to predict a single numeric value. A linear SVR model uses an unusual error/loss function and cannot be trained using standard simple techniques, and so evolutionary optimization training is used.

  • Low-Code Report Says AI Will Enhance, Not Replace DIY Dev Tools

    Along with replacing software developers and possibly killing humanity, advanced AI is seen by many as a death knell for the do-it-yourself, low-code/no-code tooling industry, but a new report belies that notion.

  • Vibe Coding with Latest Visual Studio Preview

    Microsoft's latest Visual Studio preview facilitates "vibe coding," where developers mainly use GitHub Copilot AI to do all the programming in accordance with spoken or typed instructions.

  • Steve Sanderson Previews AI App Dev: Small Models, Agents and a Blazor Voice Assistant

    Blazor creator Steve Sanderson presented a keynote at the recent NDC London 2025 conference where he previewed the future of .NET application development with smaller AI models and autonomous agents, along with showcasing a new Blazor voice assistant project demonstrating cutting-edge functionality.

Subscribe on YouTube