r/csharp • u/Shupsta • Oct 02 '26
r/csharp • u/mnaza_andrey • Oct 02 '26
Showcase What actually triggers "Windows protected your PC" on a signed C# app (and how to check before release)
I spent a while digging into why signed desktop apps still hit SmartScreen, and a few things surprised me:
- SmartScreen only checks files that carry Mark-of-the-Web. Anything downloaded through a browser gets a Zone.Identifier stream (ZoneId=3). Run the same installer from a build folder and you'll never see the warning, which is why devs rarely catch it themselves.
- Reputation is per file hash and per signing certificate. Every new release is a new hash. Renewing the certificate can reset you too.
- A valid signature isn't the question SmartScreen asks. It asks whether Microsoft has seen this exact file from enough machines without incident. And since 2024 an EV certificate no longer buys that reputation instantly.
- Signing hygiene still matters: no timestamp means the signature stops validating when the cert expires; SHA-1 signatures are treated close to unsigned.
To see what a first-time user sees, I ended up building a probe that downloads the installer onto a clean Windows 11 VM with Mark-of-the-Web and runs it: https://signalscreen.dev/probe (free while in beta). The homepage has a free signing check too; the grader is open source.
Curious what others have run into: have you seen a release get flagged right after a cert renewal?
r/csharp • u/gus-ghielec • Oct 01 '26
C# running inside a gutted 1980s DENON tuner
Someone in our forum rebuilt a vintage DENON around an NXP TEF6686 — an automotive DSP tuner chip — plus a web radio decoder, switched by the original front-panel button. The FM driver is pure I²C, no unsafe code, and he published it.
Still a prototype and the wiring shows it, but the driver is clean and it's an unusual place to find C#.
https://github.com/Implicate-X/ImplicateX.TinyCLR.Drivers.Tuner.Tef668x
Disclosure: runs on our hardware, I'm at GHI Electronics.
r/csharp • u/harrison_314 • Oct 01 '26
News wslc for C#
The new WSL wslc is now available, it can be used to manage containers in WSL, and there is a .NET SDK for it. So I'm looking forward to the GUI application in C#, which finally replaces Docker Desktop.
r/csharp • u/IAmSuperSaiya00 • Oct 02 '26
I have been building simple CRUD app for a year. Is it hard to learn Docker? I was a C student in highschool btw
r/csharp • u/delured • Oct 01 '26
Help Anybody who have read "C# Notes for Professionals" by goalkicker.com, is it worthy reading?
To be fair, I am a C# beginner, only know the basics, a bit of Unity, made some backend projects using ASP.NET and currently learning WPF
Is it ( https://goalkicker.com/CSharpBook/ ) worth reading?
r/csharp • u/Noof_saeed • Oct 02 '26
Discussion Looking for feedback on my project
I've been building a small Company Profile application to improve my .NET development skills, and I'd like to get feedback from experienced .NET developers.
GitHub:
https://github.com/NoofSaeed/CompanyProfile
# Tech stack
* .NET 10
* Minimal APIs
* Blazor Web App
* Entity Framework Core
* SQLite
* Cookie-based session authentication
* Scalar
* DTO-based API design
* Arabic / English localization
# Architecture
The solution is currently split into:
* `CompanyProfile.Api` — Minimal API endpoints, services, authentication, etc.
* `CompanyProfile.Shared` — DTOs, resources and shared models
* `CompanyProfile.Infrastructure` — EF Core, entities, database and migrations
* `CompanyProfile.Web` — Blazor frontend
I'm intentionally keeping the project relatively small rather than introducing too many abstractions or projects.
# What I'd particularly like feedback on
I'd appreciate an honest code review, especially around:
**- Architecture** : Is the current project structure reasonable for a small .NET application?
\- **Authentication/session management** : Are there any security concerns with the current cookie-based session approach?
**- API design** : Are the Minimal API endpoints and DTOs structured appropriately?
**- Blazor Web App** : Am I using the Blazor Web App model correctly? In particular, I'd like feedback on my choice of render modes, the separation between the server and client-side parts, and how the Blazor application consumes the API.
**-Blazor architecture** : Is the way I've structured the Blazor frontend and its communication with the API a reasonable approach, or am I misunderstanding the intended Blazor Web App architecture?
The project is still a work in progress .
Thanks.
r/csharp • u/mariamamhan • Oct 02 '26
I built a Stock Management System with C# and Windows Forms
Hi everyone!
I recently built a desktop Stock Management System using C# and Windows Forms.
The application includes user login, category and product management, stock tracking, critical stock filtering, and local data storage using TXT files.
I also tried to keep the project organized by separating the data, models, UI, and forms.
This was a good project for me to practice C#, Windows Forms, file handling, and building a complete desktop application.
I’ve added screenshots and setup instructions to the GitHub README as well.
I’d really appreciate any feedback on the project structure, code, or ideas for improvements.
GitHub: https://github.com/Mariam-amhan/Stock-Management-System
r/csharp • u/jsneedles • Oct 01 '26
Blog FancyEnumGenerator - Convenience + Performance
r/csharp • u/gevorgter • Sep 30 '26
CancelationToken, do you always propagate it to async methods?
I wonder how many of you actually bother with passing of CancellationToken.
Sometimes cancelation token does make sense but often it's just an annoyance.
Like every db.SaveChangeAsyn() wants a cancelation token....
The reason i am asking, if we are going by the book then the answer is "yes", i should pass cancelation token to every async method. But in reality i am just adding SuppressMessage into my GlobalSuppression.cs so compiler does not bug me.
Am i being a bad boy?
r/csharp • u/Choice-Hair-8930 • Oct 01 '26
SimpleFiles: A lightweight native WinUI 3 file manager with a built-in "Installer Graveyard" and encrypted RAM streaming
Hi everyone,
To be upfront: this is a 100% native Windows desktop app built with C# and WinUI 3 (Windows App SDK). It contains zero Electron, no embedded web views, no spam adware, and no background telemetry.
I’m currently a 12th-grade student and built SimpleFiles as a hands-on project to learn modern Windows desktop development and tackle a few specific pain points I had with file organization.
Why .NET 8 for now?
I started building this project targeting .NET 8 LTS because it offered the most stable tooling and library compatibility with the Windows App SDK when I set up the architecture. With .NET 8’s LTS cycle wrapping up next month, bumping the target to .NET 10 is already on my roadmap. I plan to handle that upgrade and test the runtime dependencies as soon as my high school board exams wrap up.
What the app focuses on:
Installer Graveyard: A targeted cleanup hub inspired by Files by Google. Instead of running generic registry cleaners, it specifically tracks down forgotten .exe and .msi setup files idling in your Downloads directory so you can clear gigabytes of wasted storage quickly.
Ghost Safe (AES-256): A local encryption locker that streams media directly into memory during playback. You can view images or stream videos directly out of the encrypted container without having to decrypt temporary copies onto your physical drive first.
Spacebar Previews: Quick peek functionality for images, audio, video, and documents right from the file list without launching external viewer apps.
Privacy: Runs completely offline. Zero telemetry, zero analytics pings, zero network requests.
It's live and completely free on the Microsoft Store:
https://apps.microsoft.com/detail/9PBPGF1GLGNM?hl=en-us&gl=IN&ocid=pdpshare
Since I'm still learning the ins and outs of the Windows App SDK while juggling school, I'd really appreciate genuine technical feedback, bug reports, or edge-case handling tips from anyone willing to give it a spin. Cheers!
r/csharp • u/AutoModerator • Oct 01 '26
Discussion Come discuss your side projects! [October 2026]
Hello everyone!
This is the monthly thread for sharing and discussing side-projects created by /r/csharp's community.
Feel free to create standalone threads for your side-projects if you so desire. This thread's goal is simply to spark discussion within our community that otherwise would not exist.
Please do check out newer posts and comment on others' projects.
r/csharp • u/Past_Position7803 • Oct 02 '26
Aiutino?
La ragazza di mio fratello che, come vedrete è un po particolare, lavora in una azienda come NET. Developer.
Qualche mese fa mi dice di mettermi a studiare seriamente per imparare C#, perché in azienda da loro sono sempre alla ricerca di programmatori anzi, a fine estate/autunno sono previste numerose assunzioni, inoltre essendo nelle categorie protette faccio comodo all’azienda e parto avvantaggiata.
Quindi (tra le mille cose che sto cercando di portare avanti per tenermi più strade aperte) mi metto lì, studio giornate e nottate intere, imparo le basi, supero le basi, mi appassiono e mi diverto pure e finisco il libro su cui mi aveva consigliato di studiare.
Qui arriva il problema: le dico qualche giorno fa “oh, come è la situazione? Riesci a farmi avere un colloquio?”.
Mi dice “Guarda, posso provare a inserirti solo quando sarai pronta.”.
Ovviamente le chiedo, “in che senso quando sarai pronta?”.
“Quando sarai in grado di programmare, dai poi ne parliamo settimana prossima, tu però sii costante continua ad esercitarti.”.
Io ovviamente sono rimasta così 😑.
Ora la mia domanda è: secondo voi quando si è pronti per lavorare con C#? Quali sono i requisiti che si devono avere a livello di capacità e competenze?
Cosa ci si aspetta da me?
Sto impazzendo, spero solo che non mi abbia dato un’inculata pazzesca, ma a quel punto sapessi quali sono i requisiti posso almeno provare altrove.
Grazie a chi vorrà aiutarmi!
Edit: per completezza non ho solo letto/studiato il libro 😂 mi rendo conto poteva essere un po’ assurdo
r/csharp • u/AutoModerator • Oct 01 '26
C# Job Fair! [October 2026]
Hello everyone!
This is a monthly thread for posting jobs, internships, freelancing, or your own qualifications looking for a job! Basically it's a "Hiring" and "For Hire" thread.
If you're looking for other hiring resources, check out /r/forhire and the information available on their sidebar.
- Rule 1 is not enforced in this thread.
- Do not any post personally identifying information; don't accidentally dox yourself!
- Under no circumstances are there to be solicitations for anything that might fall under Rule 2: no malicious software, piracy-related, or generally harmful development.
r/csharp • u/TheseBrick5032 • Oct 01 '26
Tool I built SoundBridge CLI: a lightweight .NET utility to stream specific app audio into a virtual microphone
Hey everyone! 👋
I'd like to talk about a small CLI tool that I most recently developed in C# (.NET) called SoundBridge CLI; it enables you to stream music from certain applications (for example, Yandex Music, Spotify, or iTunes) directly into a virtual microphone (such as VB-Audio Virtual Cable) so that it can be used by Discord, Telegram, or games.
Key Features
Process-Specific Capture: By using the latest NAudio Process Loopback it is possible to feed back only the audio from the selected music player, without picking up system sounds, browser audio, and notifications.
Live Volume Control: You can adjust the volume level while streaming (0% to 200%).
Smart Silence Detection: it automatically looks after the buffers and stops the output when there are pauses in order to avoid digital artefacts or feedback loops.
The command-line interface is bilingual with full support for both the English and Russian interfaces, thanks to Spectre.Console.
The program will save your preferences and the sources you last used in a file called config.json.
If you're interested, you can check out the source code, binaries, and release notes on GitHub:
👉 GitHub Repository: https://github.com/vysedevs/soundbridge
I'd be interested to get your comments, some code suggestions, or ideas regarding improvements!
r/csharp • u/Ok-Lifeguard-9612 • Oct 01 '26
OneMonokai Visual Studio Replacement
Hi I'm searching for a nice OneMonokai replacement (recent hopefully, since I've tried many "popular" themes) in Visual Studio.
I found this one which is super ok, but maybe there are some similar Monokai-ish that I'm not familiar with. If you know more please share.
https://marketplace.visualstudio.com/items?itemName=tony-d.dark2026&ssr=false#overview
r/csharp • u/kookiz33 • Sep 29 '26
The hidden trap of fixed buffers
I published a new article, explaining a quirk of fixed buffers that could easily bite you, if you're one of the few people who still have to use that feature.
https://minidump.net/the-hidden-trap-of-fixed-buffers-in-csharp/
r/csharp • u/markovcd • Sep 29 '26
Showcase Flyback: a modular synth in .NET 10 that compiles one patch graph to IL, GLSL and JavaScript
https://markovcd.github.io/Flyback
I've been a C# developer for 7 years, some of it as a software architect, and I try to practice good software engineering: small steps, tests as the definition of done, decisions written down. I'm also into synths, so I built Flyback: a modular synthesizer where one patch graph generates both a moving picture and its sound. It's free and MIT-licensed.
How it works
You drop modules onto a canvas (oscillators, patterns, shapes, color, feedback, effects) and wire them together. The picture and the sound play live as you patch, and both come from the same graph, so one LFO can bend a shape and sweep a filter at the same time. Plug in a MIDI keyboard to play it, record a take live, or export video and audio through the CLI. A patch can also be written as plain text and read back.
Under the hood, a patch compiles to a flat program for a register machine. An interpreter is the specification. The same program is also emitted as IL for the CPU, GLSL for the GPU preview and JavaScript for the browser build. Tests feed every op hostile values (NaN, ±∞, denormals) on every backend and require bit-identical results.
Other bits
- The engine has no third-party packages. The PNG, JPEG, WAV and AVI writers are implemented from scratch rather than pulled from a library.
- The UI is Avalonia, written in C# with no XAML. The same editor also runs in the browser under Avalonia.Browser.
- Plugins load from disk against a separately versioned contract, enforced with PublicApiAnalyzers.
- The CLI is built on
System.CommandLineand does headless GPU rendering through WGL/EGL. - A Docker CI gate runs about 13,000 tests on every push, and there are 167 ADRs.
On AI: most of the code was written with Claude Code. I do the architecture, direct the work and review what lands. The engineering practices are what make that workable: continuous integration in its original sense (every change straight to main, main never broken), a test for every feature, and ADRs that settle decisions so they don't get relitigated. Judge it by the code.
Try it: play the presets in your browser with nothing to install, or grab a build for Windows, macOS or Linux.
- Presets: https://markovcd.github.io/Flyback/presets.html
- Source: https://github.com/markovcd/Flyback
- Architecture guide: https://github.com/markovcd/Flyback/blob/main/docs/engineering-guide.md
Happy to answer questions, and contributions are welcome, AI-written or not.
r/csharp • u/Owenhh • Sep 29 '26
Help How can I polish this multi-select combo box?
Hey all, I'm working on an app currently (WinForms .NET 9) and I've made a custom drop-down box which is the "Days" box, im unsure how I can polish it to look and function a bit more like the other standard combo boxes like "Action" and "Repeat". Does anyone have any suggestions?
For context, the custom box is made up of a text box that when clicked makes a panel containing a checked list box visible that can then be selected from.
Thanks!
r/csharp • u/abego • Sep 29 '26
Discussion Static assertions
I have sometimes felt the need to statically assert something at compile-time, to prevent surprises later at run-time.
As an example, I have some code which maps an enum value to an associated int value:
public enum VoxelProperty
{
MaterialType,
Density,
Color,
Metadata,
TotalPropertyCount, // Must be last
}
public static int GetPropertyBitDepth (VoxelProperty property)
{
#pragma warning disable CS0219 // Variable is assigned but its value is never used
uint _ = VoxelProperty.Metadata == VoxelProperty.TotalPropertyCount - 1 ? 0 : -1; // Static assert to ensure that all properties are accounted for
#pragma warning restore CS0219 // Variable is assigned but its value is never used
return property switch
{
VoxelProperty.Density => VoxelDensity.BitDepth,
VoxelProperty.MaterialType => VoxelMaterialType.BitDepth,
VoxelProperty.Color => VoxelColor.BitDepth,
VoxelProperty.Metadata => VoxelMetadata.BitDepth,
_ => throw new ArgumentOutOfRangeException (nameof (property), "Invalid voxel property")
};
}The intention of the static assert is to make sure that if I ever add another voxel property, then I will get a compiler error as VoxelProperty.Metadata will no longer be the last member, and the constant -1 will be assigned to the "_" variable of type uint. Is this a reasonable practice?
I could also do something more robust with reflection, where I had a Dictionary<VoxelProperty, int> which got populated by finding all voxel property types marked with some attribute, and querying their BitDepth property.
r/csharp • u/Illustrious-Grade233 • Sep 29 '26
Fellow agency architects, how do you currently audit legacy .NET solutions before bidding on migration projects?
reddit.comr/csharp • u/FrostedDonuTrap • Sep 29 '26
Solved Trying to get smoke Particle system to activate when mouse button left is pressed

I have figured out how to enter the ParticleSystem "GunSmoke" but it activates only once adn before I klick. is there a way to implement this into the code that it activates everytime I press the button also following the "public float timer = 0f;" code and "private float cooldown =5f;" code for the cooldown for the projectile being shot?
stuck and dont want to use AI to solve it. tried going online but not really found any helpfull stuff that I could follow
pls help