Category dotnet

ลองใช้ Microsoft Agent Framework – Agent Skills

สำหรับวันนี้ Blog ชุด Microsoft Agent Framework และเรื่องผมไปพูดในงาน Build.AI 2026 ที่ผ่านมาครับ โดย Feature นี้มันมีมาพักใหญ่ๆ แล้วครับ For English Version: Using Skills in Microsoft Agent Framework – C# ผมเล่นตั้งแต่ช่วงหยุดสงกรานต์ ตอนนี้อยู่มีเสียงในหัว พวก Claude / Hermes มันเอา Skill.md เข้ามาใส่ แล้วที่นี้ตัว Microsoft Agent Framework มันใช่ได้ไหม ปรากฏว่ามันมีครับ…

Using Skills in Microsoft Agent Framework – C#

Welcome to today’s post! This blog series dives into the Microsoft Agent Framework and my recent speaking session at Build.AI 2026. For Thai Version: ลองใช้ Microsoft Agent Framework – Agent Skills This feature has been around for quite some time—I…

Using Pattern Matching with C# Switch Expression

Classification and decision logic are among the most common tasks in application code. Developers must routinely map input values to categories, dispatch behavior based on object types, and validate data against a set of business rules. Traditionally, these scenarios have…

Unit Test มันช่วยกัน App Crash ได้นะ (Infinite Loop)

วันนี้ไปส่องใน Grafana แล้วพบว่า มี Build อันนี้ ใช้เวลา Run ผิดปกติ เลยไปส่องดู Code ถ้าใหมาแบบนี้ Jenkins มันทำงานไปเรื่อยๆ จนถึง Timeout ที่ตั้งไว้แน่ๆ แล้วอาจจะมีประเด็นขอ Waive Test ได้เพราะนาน หลังจากลอง Pull Code แล้วลอง Run Test ดูก็พบว่า Test แมร่ง Run ค้างไปเรื่อยๆ 10 นาที ยังไม่หยุดครับ เลยต้องเข้าไปดู Code จาก Code ข้างต้น…

ลองสร้าง dotnet cli เพื่อตรวจสอบจำนวน Component ของแต่ละ Repo ใน Nexus

จากปัญหาที่ว่า Sonatype Nexus เริ่มจะ Limit จำนวน Component / Request ในแต่ละเดือนแล้ว อ้างอิงจาก ถ้าใครตาม Blog ตอนก่อนหน้าจะเจอว่าเราคุมพื้นที่การใช้งานได้จะ โดยไปกำหนด สร้าง Cleanup Policy บน Sonatype Nexus Repository แค่มันมีคำถาม แต่ละ Package อย่าง nuget / maven / npm มันใช้ไปจำนวนเท่าไหร่ ปัญหาตัว Nexus มันไม่บอก นอกจากบอก Usage Limit และเดียวที่บอก usage…

Remove +07.00 from dotnet datetime

A colleague came to ask about generating BAHTNET (PACS.008) files where the date has +07:00 appended, for example 2026-05-22T12:06:09+07:00, and they wanted to know how to remove the +07:00. So I’m writing a quick recap of the solution here. Happy…

How to Merge DevExpress XtraReport

I had to combine two different DevExpress reports into one. Since they have completely different layouts like when you’re merging an invoice with a shipping label So, using a Subreport just didn’t work for my needs. After digging through the…

Extend OllamaApiClient Timeout (Note)

พอดีช่วงนี้มีลอง Side Project ทำ Coding Review Agent โดยใช้ Local LLM ของผมใช้ตัว Ollama ตัว dotnet client ที่ใข้ OllamaSharp หรือยิง REST ตรงๆก็ได้ อันนี้ผมใช้ OllamaSharp เพราะมันใช้กับ Microsoft Agent Framework ได้เลยครับ เพราะตัว OllamaApiClient Implement Interface IChatClient ของ Microsoft.Extensions.AI แล้ว ที่พอลองเล่นๆ ไปพบว่า Local LLM การทำงานจริงมันช้ามาก…

ลองมาใช้ Skill กับ Code dotnet เรากัน

พอดีไปเจอตัว dotnet-skills ของคุณ Aaronontheweb เลยเอามาลองครับ โดยสำหรับใน Blog ผมจะลองกับเจ้า GitHub Copilots ครับ dotnet-skills สำหรับตอนนี้ As Of MAR2026 มี Skill 2 กลุ่ม 📌 Skills Library Skill Library Skill C# Language / ASP.NET พวก coding-standards / concurrency-patterns / api-design / type-design-performance Data Access…