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 for Converge360.

comments powered by Disqus


  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube