Blog

Technical Articles

This section contains site articles covering .NET, desktop development, engineering practice, and general development topics.

First Visit

New User Starting Route

Random Exploration

Random Discovery

Random Discovery

Can the Winform interface also look good?

A few days ago, I introduced using Blazor Hybrid in Winform, and mentioned that with the Blazor UI, our Winform programs can be designed to look better. Next, I will illustrate with an example of drawing in Winform Blazor Hybrid, hoping it helps you.

Winform
Random Discovery

A Bug Encountered When Unzipping Zip Files in C# at the End of 2022

Recently, while troubleshooting an upload feature, the client uploaded a zip file. On the server side, the code using C# to unzip the file would decompress it and then verify whether it is an allowed file type. It also had to check for tampered file extensions, file headers, etc. But then, during the unzipping of the zip file, an unexpected problem occurred.

.NET
Parking Move QR Code Generation Tool Development Practice

Parking Move QR Code Generation Tool Development Practice

This article introduces how to develop a parking move QR code generation tool, including a desktop version implemented with C# and Avalonia, as well as an online version implemented with Blazor frontend and .NET Web API, covering requirements analysis, core code implementation, UI design, and application of MVVM pattern.

3/10/2025 沙漠尽头的狼 .NET
.NET 10 Preview 1 Released

.NET 10 Preview 1 Released

Today .NET 10 Preview 1 was released. I downloaded it immediately, upgraded the Avalonia UI project and blog website. The former passed functional testing and AOT publishing successfully, the latter debugging went fine, but Docker has not been successful yet.

2/25/2025 沙漠尽头的狼 Sharing / .NET
.NET Project Automation Secrets: Full Guide to One-Click Version Update and Publish Scripts

.NET Project Automation Secrets: Full Guide to One-Click Version Update and Publish Scripts

This article details how to use PowerShell scripts and batch files to automate version updates and one-click publishing in .NET Avalonia UI projects. First, it explains the setup and modification of PowerShell execution policies to ensure scripts can run properly. Then, it introduces methods for adding scripts in Visual Studio pre-build events to automatically update version numbers, as well as using batch files to publish applications on multiple platforms. Finally, a PowerShell script example is provided that can automatically update program version information based on Git tags. These methods can improve the development efficiency and convenience of the publish process for .NET projects.

2/21/2025 沙漠尽头的狼 Avalonia UI