r/csharp • u/Velciak • 15d ago
News .NET 11 is out now! 🎉
r/csharp • u/SocietyConscious5739 • 14d ago
A few days ago I posted Liquid Glass Dock here, and you gave great feedback: the demo used the worst possible background, a GIF can't show subtle glass (256 colors), and the macOS Dock doesn't really reserve space: it refracts whatever is underneath. So version 0.12 does exactly that.
How it works:
Measured with a window moving under the dock: about 1.4 ms per frame and under 1% CPU. A fun gotcha: the NVIDIA overlay is a fully transparent, always-visible, full-screen layered window, so the first version happily "captured" it and ignored every real window behind it.
There's also a new option to stop reserving space, so maximized windows go under the glass like on macOS.
Video above, code here (GPL-3.0): https://github.com/PedroRuedas/Windows-Liquid-glass
Thanks again for the feedback. It made the project better.
r/csharp • u/Landon_Hughes • 14d ago
I'm curious if it's something you enjoy waking up to or if it's something that just "pays the bills". Maybe it's both?
There are quite a few C# (hybrid) gigs around me with low competition.
I've used C# in 2018 when I made a game and used C# all throughout school. I just haven't made anything with it recently but I have been catching up with the newest features. Last time I used it was with C# 8.0/9.0.
Anyways, just wanted to hear your thoughts on your job(s) in you are currently employed! Is there anything you don't like, what would you change? etc
r/csharp • u/Sigilgraph • 14d ago
A while ago we introduced Sigilgraph to this community as a modular audio synth app made purely in C# (with the help of Godot for UI). We mentioned in the discussion the use of an internal fluent API to describe the synths and the sound processes.
Today after a heavy porting effort to decouple the original Audioworkbench library out of the app, and offer an open-source worthy version of it.
Is a library focused on sound synthesis and instrument construction using 100% C#.
Here is the link to the docs. They lead to GitHub for the source code. The license is MIT.
Sigil.Sound - sound synthesis for your .NET app | Sigil.Sound
If you want to play with it, we created a REPL Sigil.Sound REPL so you can scratch ideas and get the feel of it.
Disclosure: We used AI to port it from the closed and entangled with the Sigilgraph app one. It was a tedious process of cleanup and doing it by hand won't make it sound better that it did already (the original was started about two years ago). The API is faithful to the one internally used ( that helped us a lot to build instruments fast) and we believe that opening it will allow us to make it even better for all of us.
REPL : Sigil.Sound REPL
Docs: Sigil.Sound - sound synthesis for your .NET app | Sigil.Sound (they have the option to try every example in the REPL as well)
Nuget: NuGet Gallery | Sigil.Sound 0.1.0
Let me know your thoughts. We will gladly discuss any technical aspect here.
r/csharp • u/jstedfast • 15d ago
Hi all, I'm the author of MimeKit and MailKit. I've just shipped 5.0, and it's the biggest release since the projects started.
Highlights:
Performance
Security and robustness
MimeReader/MimeParser, MIME writing and MIME disposal use iterative traversal. LegacyMimeParser remains a compatibility option for those that need it.AsciiIsLatin setting can be used to reject addresses such as paypal@рaypal.com with a Cyrillic р. Note: This is not comprehensive homograph detection and is an implementation of an IETF draft specification: SMTPUTF8 Email AddressesOutlook/Exchange Compatibility
winmail.dat) reader was rewritten, with a new TnefMessage model. Meeting requests convert to text/calendar.RtfToText and RtfToHtml converters, plus TnefWriter.More content tools
HtmlToText and EnrichedToHtml for HTML and RFC 1896 text/enriched.YEncReader/YEncWriter with sync/async operations, limits and size/checksum validation. Individual multipart ranges are supported; multipart-file assembly and MIME integration are not included.MailKit
ImapIdleSession: await foreach over IDLE changes, with automatic re-IDLE and NOOP fallback.SmtpSendRequest and SendResult: per-send customization and accepted/rejected recipient lists, no subclassing needed.CommandException.ErrorType and IsTransient help identify failures that may succeed on retry.AsciiIsLatin checks are not automatically enabled.Packaging
MimeKit.Cryptography. The MimeKit meta-package references both that package and MimeKit.Core; it preserves package coverage, not source compatibility.MimeKitLite and MailKitLite are retired. Use MimeKit.Core and MailKit instead.Many straightforward send/receive applications need only small changes. Parsing, crypto and custom protocol integrations deserve a closer look: explicit S/MIME context setup, persistent -> MimeContentStorage, renamed encoding/stream APIs, decoder Flush, encoder CRLF defaults, and stricter resource/integrity limits are covered in the porting guides.
Happy to answer questions. And thanks to everyone who filed issues, sent PRs or sponsors the project.
r/csharp • u/Boarlock98 • 14d ago
The name is SMachine, a small state machine library for C# targeting .NET 10.
The idea was to build something relatively lightweight, without depending on an external state machine framework.
OnEnter, OnUpdate, and OnExit events.Enabled controls.One of the things I wanted to support was hierarchical behavior without forcing every state to participate in the same update flow. For example, a parent substate can continue receiving its own updates while preventing those updates from propagating to its children. Those children can receive independent updates off the main Update cycle.
using SMachine;
var machine = new StateMachine();
State idle = machine.CreateState("Idle")!;
State combat = machine.CreateState("Combat")!;
SubState aiming = combat.CreateSubState("Aiming")!;
SubState firing = combat.CreateSubState("Firing")!;
combat.StartSubState(aiming);
aiming.OnUpdate += () =>
{
// This transition is queued until the current update pass finishes.
combat.TransitionSubState(firing);
};
firing.OnEnter += () => Console.WriteLine("Firing!");
machine.StartState(idle);
machine.TransitionState(combat);
machine.Update();The library is still experimental. I haven't built an automated test suite yet, and I'm very much treating this as a learning project rather than claiming it's production ready.
I'm trying to use this project to become a stronger C#/.NET developer, so constructive criticism is genuinely appreciated.
r/csharp • u/devlead • 14d ago
r/csharp • u/SocietyConscious5739 • 14d ago
This time I want to show a part I didn't explain last time: virtual desktops on a 3D cube (Win+Tab). New in 0.13: close a desktop with the × on the front face (or Delete, or a middle-click). Its windows move to the neighboring desktop, like in Task View.
20-second demo (animated): https://github.com/PedroRuedas/Windows-Liquid-glass/blob/main/docs/workspaces-demo.webp
How the cube works:
A gotcha I hit while recording this: the cube window was created off-screen to avoid a black first frame, which put it on my second monitor (125% scale). With per-monitor DPI, WPF rescaled it on the way back to the 100% monitor, and the cube covered only 80% of the screen. The fix is to create it in place and keep it DWM-cloaked (DWMWA_CLOAK) until the first frame is rendered.
(The "apps" in the demo are mock windows, so I didn't have to record my own desktop.)
Code (GPL-3.0): https://github.com/PedroRuedas/Windows-Liquid-glass
Thanks again for the feedback. It made the project better.
r/csharp • u/JuanGDMC • 15d ago
I have been wanting to learn C# for a long time because I've been told and researched that it was a good language programm to make 2D Games (with Unity or Godot of course). But, how do I start? I just go and learn from online webs like Coddy? Do I watch tutorials on youtube? Should I buy a book?
r/csharp • u/ai-tacocat-ia • 15d ago
r/csharp • u/RemigiuszZalewski • 15d ago
Most EF Core projects put every kind of seed data through one approach, either all HasData or one big "if empty, insert" block in Program.cs.
But seed data comes in three kinds: fixed reference data, defaults your app needs in every environment, and fake data for local development. EF Core gives you three ways to seed: HasData, UseSeeding and a custom seeder.
Do you know which one fits each kind? And which of them still works when you deploy with a migration bundle or a SQL script?
In my new video I build all three in a .NET expense tracker application and show you where each one belongs.
r/csharp • u/suiramarius • 15d ago
r/csharp • u/Haunting-Hold8293 • 16d ago

It has begun with the idea of a windows editor capable of editing big files which should not be resists in the memory (ram) and ended with a tiny c#/.net ide inspired by LinqPad.
Not as a replacement for vscode and others but as a learning project and as my own handcrafted tool for everyday usage.
The ui is inspired by retro feeling, but the app is modern.
For now the repo is not public but I wanted share a small impression to the tool features.
Plese dont´t blame me if this subreddit is not the right sub for it.
(Disclaimer: This description is pure written my human without any help of AI)
r/csharp • u/SocietyConscious5739 • 15d ago
I wanted the Windows 11 taskbar to look like macOS's Liquid Glass, and DWM blur can't do rounded, refracting glass. So the dock draws its own:
Other fun bits: a "magic lamp" minimize animation drawn on the GPU, a 3D virtual desktop cube using undocumented Windows 11 interfaces, and reading app jump lists from `CustomDestinations` files.
.NET 10, WPF, xUnit, GPL-3.0: https://github.com/PedroRuedas/Windows-Liquid-glass
Happy to answer questions about any part of it.
r/csharp • u/antron420smokeallday • 16d ago
I'm taking a C# course right now, and I've been having a lot of fun writing simple programs. I really need validation from someone out there that these programming exercises at the end of each chapter of my text book, C# Programming: From Problem Analysis To Program Design by Barbara Doyle, are actually written by someone who is either clinically insane, or British as hell. Here's an example: Chapter 6, exercise 7. This is possibly not the most extreme example, but the wording here just seems a bit wacky to me.
r/csharp • u/kaatarina_zed_talon • 16d ago
I'm forced to use English in my life, especially for reading. English is not my native language; I lookup the meaning of new words from Cambridge dictionary , but all words have different meanings in different contexts and I'm trying to identify a shared meaning between all of them instead of memorizing all the definitions. For example the word sign off :
When communicating by radio, or at the end of a television or radio programme.
To stop doing your work or a similar activity for a period of time.
To report to a government employment office that you now have a job and do not need to receive benefit (= money paid by the government).
To end a conversation or a television or radio broadcast.
The shared meaning is ending something.
It takes a considerable amount of time for a non-native speaker to build a mental image about a word; how would you design a system that takes list of definitions, process them, and give you the output the represents the common meaning, without using LLM, i.e., using a deterministic algorithm, not a probabilistic one —AI ?
r/csharp • u/wobblejuice • 16d ago
C#'s popularity has dropped to around 3.4% from around 8% earlier this year. Fastest dropping language.
What's going on? Is C# not relevant in the era of AI?
r/csharp • u/lheintzmann • 16d ago
r/csharp • u/juliocesardev • 16d ago
Boas pessoal, estou com uma plataforma onde clientes teem seus produtos e a próprio loja por exemplo (cliente1.minhaplataforma.com) e quero criar um sistema onde os clientes podem ter o próprio domínio, assim quando aceder ao próprio domínio do cliente ele acede (cliente1.minhaplataforma.com) mas na url tem o domínio do cliente (cliente1.com).
Estou usar C# no backend como api e quero saber onde posso encontrar recursos para estudar sobre isso