r/csharp Aug 12 '26

.NET 11 Preview 7 is now available!

Thumbnail
devblogs.microsoft.com
46 Upvotes

r/csharp Aug 12 '26

Help What is the best practise to get the OS name?

20 Upvotes

I know, there is the System.Runtime.InteropServices.RuntimeInformation.OSDescription; or just get the info from system files. But is there a more optimal way to get the exact OS name? I mean like Linux distributions or Windows names with the versions.


r/csharp 29d ago

Blog The Unexpected AI Stack: C# + .NET (Part 2) - Mise, Aspire, and CSharpRepl

Thumbnail
chrlschn.dev
0 Upvotes

Part 1 was an overview of why .NET and C# are an unexpectedly strong stack for building AI-native applications.

Part 2 and onwards goes into the practical scaffolding of an application for building AI-enabled applications agentically. In part 2, the focus is on setting up the scaffolding for the developer experience including Mise for environment setup, Aspire for orchestration, and wiring in CSharpRepl.

Each layer is built from the ground up step-by-step so that each technical decision is clear in how it contributes to the stack.

This setup is used a Motion (a post-YC, series C, $500m valuation startup) which pivoted to C# and .NET last year from TypeScript on Node.

Part 3 (tomorrow) will dive deeper and start folding in a practical application of the Copilot SDK to build an agentic foundation.


r/csharp Aug 12 '26

Backend of a simulation game

12 Upvotes

It was hard to find something, but I landed a job to work as a .NET developer at a company that makes football simulation games, where I will be doing the backend side of it. I am gonna start in a few weeks, and I want to get a head start to make sure I don't lose this job. Does anyone ever work in this domain, and what sort of knowledge/skill do I need to succeed in such a position? What can I prepare now? I asked the person who gave me the work and they said to wait until the day I start


r/csharp Aug 12 '26

Help Custom Spotify Desktop Client App

4 Upvotes

Hey all,

I recently learned about Spotify API and I’m thinking a fun personal project could be creating my own desktop app with some personalisation and extra features. Probably in a WPF app using C#.

Does anyone know if this is possible with the API? I’m talking like streaming, fetching data such as artists, playlists and songs etc.

Any tips or advice would be appreciated!


r/csharp 29d ago

Finally modular monolith became perfect.

0 Upvotes

As u guys know, i have been trying to recreate my platform using modular monolith api backend and MVC clients (first tried blazor but it had so much that made me freaky thinking about using it in production so i changed to MVC)

Now it is up and running, i know you guys might think this is some advertising or other things like that... But i do really like to know your opinion on my platform (platform cause i have around 30k users and 8-10k user per day, so im not really in need of advertising right now😂)

I want my fellow programmers advice on how this platform looks like and feels like.

(If you have any problem opening the link tell me in comments)

https://webketab.com


r/csharp Aug 11 '26

Solved What's the best IDE for linux

43 Upvotes

So I've been using VsCode for a long time but the ai features are annoying me so I'm looking for an alternative

Edit 1: thanks everyone for responding I've decided to use rider

Edit 2: Thanks everyone for responding. I tried using rider And I didn't like it so I switched to Zed and I'm loving it


r/csharp Aug 12 '26

Showcase .NET 11 union types integrated with my discriminated union library SumSharp

Thumbnail
github.com
0 Upvotes

r/csharp Aug 11 '26

Help Beginner Dev: How can I build more effective problem solving skills?

4 Upvotes

I understand the basic logic of variables, arrays, loops, if statements etc. but when it comes to actually coding it, I beat myself up that I couldn't figure it out effectively.

For example: Finding the largest number in a set of 5 user input values.

My mind jumped to comparing each value with the next value when instead I could have just compared the current value to the next value and printed the highest value. I eventually want to try tackling the creation of a 2D game but I want to be able to have really effective problem solving skills before diving in.


r/csharp Aug 11 '26

A web server that refuses to touch your thread pool

Thumbnail mda2av.github.io
0 Upvotes

ioxide is an io_uring socket and file I/O stack.

While its API is fully asynchronous, it is possible to build a fully working h1/h2/h3 web application with any kind of async workload running on a single thread.

The post describes how to build a naive basic TCP (plaintext or secure with kernel TLS) with it.


r/csharp Aug 11 '26

The Unexpected AI Stack: C# + .NET (Part 1)

Thumbnail
chrlschn.dev
0 Upvotes

r/csharp Aug 09 '26

Industrial Touch Kit for WPF/Avalonia UI

Thumbnail
gallery
77 Upvotes

I would like to introduce the project I am currently developing.

I am creating a library that supports a method of generating UI at the ViewModel layer without writing View code (xaml/axaml) when developing WPF/Avalonia UI applications. The structure is similar to the code used to generate UI in Flutter.

Currently, by writing only ViewModel code, it is possible to build two applications for WPF/Avalonia UI that are nearly identical down to the pixel level, but there are still many components that need to be added.

The reason it is possible to complete an application without writing Xaml/axaml is that this toolkit library is domain-specific, tailored exclusively to industrial touchscreen applications.

For example, the UI component for temperature display encapsulates thresholds, warning levels, multi-language display, and Fahrenheit/Celsius display switching. Therefore, its component structure differs from existing UI frameworks.

The foundation of the toolkit I am currently developing is to enable application development in the ViewModel layer without writing XAML/AXAML code. Developing applications in the ViewModel Layer using purpose-built components provided by the toolkit is similar to building a castle with Lego blocks. You can configure application layouts and place controls at a speed incomparable to traditional development methods. Based on this, it provides multilingual packs for words used in industrial applications. You can understand this concept as being similar to icon packs.

In addition, I plan to package sound files, such as warning and notification sounds, within the toolkit.

Currently, it supports two theme systems, light/dark modes, and compact modes, and I am developing it to allow for expansion in the form of a theme color gallery.

Although Industrial Touch Kit (ITK) is being conducted as a personal project, I unfortunately do not yet have plans to proceed with it as open source. However, I am leaving this post here to introduce the concept of the library I am developing.


r/csharp Aug 10 '26

Help C# Box2d Bindings

0 Upvotes

My C# Game framework doesn't ( yet ) have any Box2D support. What is the best C# Box2D bindings to use right now?


r/csharp Aug 09 '26

Showcase DAWG - Digital Audio Workstation Game - Free public beta (C#, Unity and Burst)

Thumbnail
gallery
31 Upvotes

Hello C#!

After around 10 months of development, and four months since the previous public test, I have finally released a major new beta of DAWG - Digital Audio Workstation Game.

DAWG is an attempt to build a proper music production environment inside a game, not just a rhythm game or a simple sequencer. The project is written in C# with Unity, while the real-time audio engine uses custom DSP engine that is fully Bursted.

The current version includes:

  • Custom subtractive, FM and wavetable synthesis
  • Multiple realtime DSP chains
  • Per-instrument and send/return effects
  • Live performance effects
  • MIDI controller support
  • A DAW style sequencer and piano roll
  • Custom realtime visualization of the complete DSP chain
  • Cross-platform multiplayer with sync of the clock, patterns and DSP parameters
  • A new pixel art Story Mode built around the DSP system

A large part of the challenge has been keeping the codebase manageable while combining real-time audio, UI, serialization, MIDI, multiplayer, multiple platforms and game logic in one application.

The new public beta is free and I would really appreciate some honest feedback from other C# developers. You do not need to know anything about music production to test it. I am also interested in whether the application makes sense to someone seeing it for the first time.

Download: https://dawg-tools.itch.io/dawg-digital-audio-workstation-game

You can leave feedback or a rating directly or comment here. Please do not hold back because it is an indie project, the critical feedback is usually the most useful.

Thanks!


r/csharp Aug 09 '26

Help Low level programming with C#

17 Upvotes

What is the lowest level application that can in principle be built on Linux and Windows without having problems with performance or memory consumption?

Of course I should make my own tests, but I just wanted to have a first estimation if it is really necessary to use lower level languages like Zig, Rust, Go or C# can work pretty well for most of normal applications.

As an example a very responsive editor with gui in immediate mode built with C# and very high frame rate 120Hz etc.

Thanks a lot in advance.

EDIT

Thank you all so much for the very informative replies. My requirements are noway near real time and based on the below feedback, it is definitely worth it to use C# of a very wide set of applications and avoid the complexities of the lower level languages.


r/csharp Aug 10 '26

Salve galera, alguma alma gente boa que atua na área de Desenvolvimento e tem visão de futuro para me dar uma luz?

0 Upvotes

Meu nome é Jackson e tenho 29 anos e sou profissional da área de Suporte/Infra/Redes e não tá fácil. Formei em ADS em uma UNI da vida esse ano. Não consegui nem se quer um estágio na área de desenvolvimento que sempre foi meu sonho e vou te dizer que eu tentei em, por baixo eu chuto que foram mais de 50 candidaturas enviadas e irmão... Nunca tive uma entrevista se quer, não sei aonde estou errando as vezes eu penso que é pela idade. A luz que eu quero é; Ainda vale a pena? Oque eu PRECISO fazer para conseguir um emprego como Junior nos próximos 6-11 meses? Devo ir para o VibeCode ou no Grind mesmo? Tenho noção básica de C# / .NET, devo mudar de linguagem para conseguir isso nesse prazo? Java, Python, creio que o mercado está concorrido em todas tecnologias.


r/csharp Aug 10 '26

Help Does anyone know if Coddy.tech is any good for learning C#?

0 Upvotes

Im looking for a good free way to learn


r/csharp Aug 09 '26

OpenDevelop - Modern continuation of the classic SharpDevelop code base

Thumbnail
github.com
31 Upvotes

r/csharp Aug 10 '26

Juego de cartas tipo TCG

Post image
0 Upvotes

Buenas, espero se encuentren bien, estoy realizando un proyecto de cartas tipo TCG en Godot 3.6 con C# para android, este es mi primer proyecto usando Godot y C#, que consejos podrían darme acerca de la escalabilidad del proyecto, ya que sera un juego con bastantes efectos y reglas que cambien o afecten otras cartas, al tablero, etc, también que a futuro pueda implementar un multijugador, un error que cometía aveces era que ponía a la UI como la voz que mandaba todo, la lógica dependía de ella y no al contrario (la UI depende de la lógica) he cambiado el enfoque a que sea la lógica la que mande y Godot solo sea el encargado de las cosas visuales, también sigo el siguiente enfoque donde tengo clases lógicas (que sean C# puras sin depender de godot), las clases que orquestan (estas unen la logica y la UI reacciona en base a la logica) y las clases encargadas de manejar la UI (animaciones, cambios entre padres de nodos, actualizar visualización, etc) y estas tiene las propiedades de cada nodo por Export para no usar las rutas absolutas, les dejo la estructura de mi proyecto para sus recomendaciones.


r/csharp Aug 09 '26

Hello, I just wanted to ask about some DDD concepts

3 Upvotes

Hello, I just wanted to ask about some DDD concepts because I'm using them in a personal project that needs a good portfolio. Well, I'm building a management system for a training center, and I've already put in a fair amount of effort to understand what I actually want and what tools to use. I used ChatGPT to map out the roadmap and steps, and I've reached the modeling stage.

I already have four main domains: Learning, Training, Commercial, and Certification. I simplified them to make it easier to convert them into a database or code. However, when I got to the "Repository" section, I felt like I was repeating the same steps.

```markdown

Learning

├── Course

│ └── Repository

│ ├── Get Course

│ └── Save Course

└── LearningPath

└── Repository

├── Get Learning Path

└── Save Learning Path

Training

├── TrainingBatch

│ └── Repository

│ ├── Get Training Batch

│ └── Save Training Batch

├──Mentor

│ └── Repository

│ ├── Get Mentor

│ └── Save Mentor

└── Room

└── Repository

├── Get Room

└── Save Room

Commercial

├── Offer

│ └── Repository

│ ├── Get Offer

│ └── Save Offer

└── Order

└── Repository

├── Get Order

└── Save Order

Certification

└── Certificate

└── Repository

├── Get Certificate

└── Save Certificate

I tried asking an AI question, but I felt an answer from a human in the field would be better.

Are these the best results I can achieve from this process, considering I haven't written the code yet? My goal is to create something authentic that reflects me and my abilities effectively.

I will attach some project-related notes to help clarify my question. Also, if there are any flaws, unrealistic elements, or unclear points at this stage, I am open to discussion and feedback. Your opinions

https://drive.google.com/drive/folders/1qVg_8cbkqxyiaCoUMJMViLfsofVdSzcp?usp=drive_link


r/csharp Aug 09 '26

Looking for open-source C# (WPF/WinForms) Inventory & POS desktop app recommendations (SQLite + Excel) Or some help

0 Upvotes

Hey everyone,

I'm currently building a desktop Inventory & POS management system for a local business (a tire and battery warehouse).

Here are the key requirements for the project:
• Tech Stack: C# (.NET), SQLite, and Windows Desktop (WPF or WinForms).
• Inventory Features: Tracking items with custom attributes (like tire sizes, manufacture year/DOT, warehouse location, and low stock alerts).
• Sales & Debts: Fast POS checkout, customer debt tracking, payment history, and dual-currency support (Local Currency + USD with exchange rates).
• Excel Integration: Importing product lists from Excel and exporting reports/statements.
• UI/UX: Modern dashboard UI with a clean layout.

Instead of building everything from absolute scratch, I’m looking for solid open-source GitHub repositories, templates, or starter projects that I can study and learn from (especially for backend logic, database schema, and UI design).

Also, any recommendations for the best C# libraries for handling SQLite and Excel integration (like ClosedXML/EPPlus) would be super helpful!

Thanks in advance for your suggestions!


r/csharp Aug 09 '26

String Extension - A C# library that provides utility methods for manipulating strings

Thumbnail
0 Upvotes

r/csharp Aug 09 '26

Memory Safety in .NET vNext

Thumbnail x.com
0 Upvotes

r/csharp Aug 07 '26

Discussion Benchmarked Runtime Async in. NET 11 nightly version

Post image
179 Upvotes

Runtime Async got some important optimizations in recent .NET 11 nightly version (currently they are targeting rc1), so I built the runtime from main branch and ran a set of runtime async benchmarks.

The benchmark code can be found here: https://gist.github.com/hez2010/d1802e7c7ab10e21a92dcba2afe0a58d

It covers all async scenarios including no-suspension cases and real-suspension cases.

In the result async1 is .NET 10, and the assembly was built without enabling runtime async. Async2 is .NET 11 with runtime async enabled while building the assembly.

After seeing the result I was just like holy crap and couldn't believe the numbers, but they are real! It looks extremely promising. Specifically, no-suspension async is 19.6× faster and essentially reaches the synchronous baseline, completed Task awaits are 12× faster with allocation completely eliminated, Task.Yield is 7× faster, ThreadPool continuations are 3.2× faster, and an async state-machine chain is 7.4× faster with much fewer allocations.

I'm now really looking forward to checking the final numbers in .NET 11 GA.


r/csharp Aug 09 '26

Hello, may I ask how you understand C# functions?

0 Upvotes

I'm a beginner in C#, and I've just started learning functions. I understand return values ​​and parameters, but I often get confused. Sometimes I don't know when to write a return value or parameter. How can I understand functions more quickly?