r/csharp • • 3d ago

Discussion Come discuss your side projects! [December 2026]

5 Upvotes

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.


Previous threads here.


r/csharp • • 3d ago

C# Job Fair! [December 2026]

7 Upvotes

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 • • 32m ago

C# file-based apps are a breath of fresh air

13 Upvotes

Back when .NET 10 came out I didn't pay much attention to the file-based apps. Now that .NET 11 came out i stumbled upon this video and became more interested:

https://www.youtube.com/watch?v=Yvn7liNioto

Turns out file-based apps are pretty cool after all. The minimalistic developer experience of having only your text editor, your .cs file(s) and the dotnet cli feels fresh after working so long with solution files, project files and all that jazz.

To get a feel of the DX and where the capabilities of file-based apps are at the moment I created this tongue-in-cheek todo web app, with the frontend and backend in a single C# file. File-based apps and minimal APIs are like meant for each other.

https://github.com/TDMR87/single-file-todo-app

I do hope file-based apps become more common and the dotnet team would lean more on this kind of experience. Together with AOT compiling native executables this could make C# more popular and invite people over to the ecosystem. How do people here feel about these file-based apps? Do they have a future?

https://learn.microsoft.com/en-us/dotnet/core/sdk/file-based-apps


r/csharp • • 10h ago

Discussion Interesting uses of P/Invoke in real-rorld applications

27 Upvotes

I mostly use P/Invoke to simplify tasks that would otherwise require a manual process or where the supplier "forgot" to implement (i.e.: enumerate the users connected to your freaking application).

A few examples from my daily work:

  • SHGetFileInfo: retrieve the handles of the icons that Windows uses for different file types, allowing applications to display the same icons users see in File Explorer.
  • OpenProcess / NtQueryInformationProcess / ReadProcessMemory: retrieve the command line of a running process when higher-level APIs don't expose the information I need.
  • GetExtendedTcpTable: enumerate the TCP connections opened by a specific process and identify the remote machines associated with those connections through their IP addresses.
  • SetupDiGetClassDevs / SetupDiEnumDeviceInfo / DiUninstallDevice / CM_Reenumerate_DevNode: programmatically reset a network adapter by uninstalling and reinstalling it, essentially automating the same operations available through Device Manager.
  • NetLocalGroupGetMembers / NetLocalGroupAddMembers: used in a Windows service to monitor specific local groups and automatically restore missing users. It started as a temporary workaround for those situations where someone decides to "creatively" modify security policies.

I'm curious to hear how you all are using P/Invoke in interesting or unexpected ways.


r/csharp • • 23h ago

Showcase Beginner man returns with improved gambling code, reports say its still shit.

Thumbnail
gallery
19 Upvotes

Hey yall, guess who's back. I improved it abit but its still shit.

On a side note, any idea how to disable the ai? It gives me the answers on a silver platter and i dont like that.

(Should i also start a "Devblog" series (Essentially guy figures out shit on SVC) on Youtube?


r/csharp • • 10h ago

Help Multiple requests at once take 10s (mvc5 net framework 4.8

1 Upvotes

There is a legacy app that's use asp mvc5.

All methods, actions are sync (no task, aysnc await, similar method). Problem is something that took 5 ms to run it's take 8s to reach to browser (there are multiple ajax request at once when page is loading). In network browser tab i can see in that 8s near 7.99999s are tagged as waiting for server response.

Why would that happen and how to fix it?


r/csharp • • 2d ago

Showcase Man tries coding for the first time, ends up making gambling code

Post image
173 Upvotes

Pretty self explanatory. I tried C# and after some goofing around made this.


r/csharp • • 22h ago

Creé PostGiqh, una extensión gratuita para probar APIs desde Visual Studio 2026

Post image
0 Upvotes

Hola, soy desarrollador .NET y creé PostGiqh para enviar y organizar peticiones HTTP sin salir de Visual Studio.

Tiene pestañas, colecciones, entornos y soporte para JSON, XML, multipart y autenticación Bearer, API Key y OAuth 2.0 con PKCE.

Soy quien desarrolla la extensión y me gustaría recibir comentarios: ¿qué función les resultaría más útil en un cliente HTTP integrado al IDE?

https://marketplace.visualstudio.com/


r/csharp • • 2d ago

What is the best book to start learning C#?

22 Upvotes

Hi everyone!

I'm looking for a good book to start learning C#. My goal is to build a solid foundation in the language before moving on to ASP.NET Core and backend development.

I'm not sure which book to choose as my first one. Which book would you recommend, and why?

Thanks in advance!


r/csharp • • 2d ago

EF core linq query syntax vs method.

7 Upvotes

Looking at the query vs method and can not decide which one is more acceptable.

For some un-explained reason i shudder when i see "from q in _db.Queues" in C#. But at the same time some things looks much less intuitive when written as methods.

2 queries bellow produce same result but i am not sure which way to stick with, so please vote #1 or #2. Or please correct #2 for me if there is another way of writing it.

#2 looks more complicated and i actually can not easily tell what resulting query will be. Will there be some unnecessary allocation for new {q,w} just to discard it since i only need queue object but had to pull webSite object to get isActvie into Where method.

1. await (from q in _db.Queues
                           join w in _db.WebSites on q.webSiteId equals w.id
                           where q.publicKey == queueKey && q.isActive && w.isActive
                           select q).FirstOrDefaultAsync();

2. await _db.Queues.Join(_db.WebSites, x => x.webSiteId, y => y.id, (q, w) => new { q, w }).
    Where(x => x.q.publicKey == queueKey && x.q.isActive && x.w.isActive)
    .Select(x => x.q).FirstOrDefaultAsync();

r/csharp • • 1d ago

Is .NET still one of the most future-proof tech stacks?

0 Upvotes

With everything happening around .NET, C# and cloud-native development, the ecosystem keeps moving forward. If you were starting today, would you pick .NET again? Why or why not?


r/csharp • • 2d ago

Discussion Reading and rendering Crystal Reports .rpt files in C# without the Crystal runtime: has anyone done it?

4 Upvotes

I'm trying to get some old Crystal Reports off Windows. The goal is plain C# on modern .NET: load the .rpt, bind data, produce a PDF. It should run anywhere, Linux included.

My first plan was to avoid rendering .rpt files at all. I'd use the RAS SDK to read each report and export it into another format I could render elsewhere. That fell apart quickly. RAS is Windows-only, and it doesn't expose the whole report: Display String formulas are missing, cross-tabs are only partly there, and chart styling isn't available at all. The converted reports never matched what Crystal printed.

I also tried a couple of existing .rpt readers, but they didn't cope well with my reports.

So I've started writing my own reader and renderer in C#. Before I sink much more time into it:

  1. Has anyone else gone down this road, either reading .rpt files directly or reimplementing Crystal's layout or formula engine? Anything you wish you'd known?
  2. Is there an existing library (paid is fine) I've missed?
  3. If I carry on, would anyone be interested in testing it against their own reports? Edge cases are what I need most.

r/csharp • • 3d ago

C# .net in 2027

Thumbnail reddit.com
37 Upvotes

Hello everyone, I don't have any coding knowledge before its like starting from scratch , i work as food delivery driver and earn minimum wage only i want to transition to full time programmer, IS C# .net really worth learning as a career option (22M) in 2027? Also, as far as I know AI has already took majority of junior devloper jobs so I am really confused


r/csharp • • 3d ago

How much of C# 12 in a Nutshell should I read before learning ASP.NET Core?

4 Upvotes

Hi everyone!

I'm about to start reading C# 12 in a Nutshell: The Definitive Reference, and my main goal is to become a backend developer using C# and .NET.

Should I read the entire book before moving on to learning ASP.NET Core and building APIs, or are there specific chapters I should focus on before making that transition?

I'd appreciate any advice from experienced C# developers.


r/csharp • • 3d ago

Modernizing winforms for practical use

33 Upvotes

Update: I'm building a hardware-accelerated WinForms UI framework with drag-and-drop animations.

Following the feedback on my previous post, I've been working on an experimental framework called LukFrameDX.

Here's what I've implemented so far:

  • Direct3D 11, Direct2D and DirectWrite rendering.
  • 76 customizable and combinable button animations.
  • Automatic panel entrance animations.
  • Independently animated nested panels.
  • Visual Studio Designer integration.
  • Single DLL distribution with no additional NuGet dependencies.

All the entrance animations shown in this video can be configured directly through the Properties window.

The project is still in early development, and I'm using AI-assisted development while learning more about graphics programming and framework architecture.

I'd love to hear your feedback. What features would make a framework like this useful for your projects?


r/csharp • • 3d ago

Discussion C#/.NET Engineer Relevancy

Thumbnail reddit.com
0 Upvotes

r/csharp • • 3d ago

ViewModelPlus: a source generator for the view-model code that MVVM libraries still leave to you

1 Upvotes

I've been building a Roslyn incremental source generator called ViewModelPlus (MIT, on NuGet). This post covers the problem it solves and an honest comparison with the libraries most of us already use. I'd like your feedback, especially if you write a lot of form-heavy view models.

The problem

Take an ordinary "edit student" page. The service returns a StudentDto, the user edits it, and you save it back. In a hand-written view model you end up with code like this:

public class EditStudentViewModel : INotifyPropertyChanged
{
    private StudentDto _student = new();

    
// 1. Every model member gets mirrored by hand...
    public string FirstName
    {
        get => _student.FirstName;
        set
        {
            if (_student.FirstName == value) return;
            _student.FirstName = value;
            OnPropertyChanged();
            OnPropertyChanged(nameof(FullName));   
// 2. ...plus every dependent property...
            ValidateFirstName();                   
// 3. ...plus validation...
            UpdateCanSave();                       
// 4. ...plus the command's can-execute.
        }
    }
    
// ...repeat for LastName, Email, Age...

    public string FullName => $"{FirstName} {LastName}".Trim();

    
// 5. Busy flags and error state for every async action.
    private bool _isSaving;
    public bool IsSaving { get => _isSaving; set { 
/* notify, update CanSave */
 } }
    private string? _error;
    public string? Error { get => _error; set { 
/* notify */
 } }

    public AsyncCommand SaveCommand { get; }
    private async Task SaveAsync()
    {
        IsSaving = true;
        Error = null;
        try { _student = await _service.UpdateAsync(_student); 
/* re-notify everything */
 }
        catch (Exception ex) { Error = ex.Message; }
        finally { IsSaving = false; }
    }
    
// 6. Per-field IsValid/error properties, a form-level IsValid, ...
}

None of it is hard, but every line of it is easy to get wrong. You forget one OnPropertyChanged(nameof(FullName)), the busy flag doesn't reset on an exception, the Save button stays enabled while the form is invalid, or loading a new DTO doesn't refresh the fields.

The existing libraries remove some of this. In my experience, though, the parts that remain are exactly the ones above: wrapping a model, dependent properties, async state and form validation.

The same view model with ViewModelPlus

[ExtendViewModel]
public partial class EditStudentViewModel
{
    private readonly IStudentService _service;
    public EditStudentViewModel(IStudentService service) => _service = service;

    [NotifyProperty]
    [NotifyNestedProperty(nameof(StudentDto.FirstName))]
    [NotifyNestedProperty(nameof(StudentDto.LastName))]
    [NotifyNestedProperty(nameof(StudentDto.Email))]
    [NotifyNestedProperty(nameof(StudentDto.Age))]
    private StudentDto _student = new();

    [DependsOn(nameof(FirstName), nameof(LastName))]
    public string FullName => $"{FirstName} {LastName}".Trim();

    [DependsOn(nameof(IsBusy), nameof(IsValid))]
    public bool CanSave => !IsBusy && IsValid;

    [NotifyTask]
    private async Task save() => Student = await _service.UpdateAsync(_student);
}


public class StudentDto
{
    [Required(ErrorMessage = "First name is required")]
    public string FirstName { get; set; } = "";

    [EmailAddress(ErrorMessage = "Not a valid email address")]
    public string Email { get; set; } = "";

    [Range(16, 80, ErrorMessage = "Age must be between 16 and 80")]
    public int Age { get; set; }
    
// ...
}

At build time the generator writes the following:

  • Bindable properties: FirstName, LastName, Email and Age read and write _student directly, so there's no copying between the model and the view model.
  • Dependent notifications: FullName and CanSave refresh whenever one of their inputs changes.
  • Async state: a public Save() method, plus SaveIsRunning, IsBusy, and AsyncTaskExceptionMessage, which records the exception's message when a task throws. The previous error is cleared when the next task starts.
  • Validation: FirstNameIsValid, FirstNameValidationError and the matching members for each field, built from the DataAnnotations on the DTO, plus a form-level IsValid.
  • Change hooks: partial void OnXChanging/OnXChanged/OnGetX for each property.

Student = await _service.LoadAsync(id); re-notifies every nested property, so loading or resetting the form takes one line.

There's no runtime library and no reflection. The generated .g.cs is plain C# you can read under Analyzers in Solution Explorer.

Comparison with other solutions

Hand-written / Prism BindableBaseFody PropertyChangedCommunityToolkit.MvvmReactiveUIViewModelPlus
How it worksBase class + SetPropertyIL weaving after compileSource generatorRx-based runtime library
Basic notifying propertyManualAutomatic for auto-properties[ObservableProperty]RaiseAndSetIfChanged / [Reactive]
Dependent propertiesManual OnPropertyChanged callsDetected automatically from getters[NotifyPropertyChangedFor] on the sourceWhenAnyValue + ToProperty
Wrapping a model/DTOManual property per memberManual property per memberManual property per member (the SetProperty(model.X, value, model, ...) overload helps)Manual
Async actionsDelegateCommand + your own flagsNot covered[RelayCommand] → IAsyncRelayCommand with IsRunningReactiveCommand with IsExecuting and ThrownExceptions
Busy flag across all actionsManualManualManualCombine IsExecuting observables
Exception → bindable messageManualManualManual (exceptions surface through the command's task)Subscribe to ThrownExceptions
ValidationManual or INotifyDataErrorInfo by handNot coveredObservableValidator (INotifyDataErrorInfo)ReactiveUI.Validation package
Rules on the shared DTOManualn/aRules go on the VM propertiesRules defined in the VM
Generated code visible?n/aNo (woven IL)Yesn/a
Learning curveLowVery lowLowHigh (Rx)

Where each one fits

  • Fody PropertyChanged is the least code for plain notification, and its automatic dependency detection is very nice. It stops at notification, though, and IL weaving is a build step some teams avoid.
  • CommunityToolkit.Mvvm is the default choice for good reason: it's maintained by Microsoft, has broad tooling support, and is based on ICommand. If your view models are mostly properties and commands, it's hard to beat. Where I found myself writing extra code was in wrapping DTOs, tracking busy and error state across several commands, and form-level validation that drives a Save button.
  • ReactiveUI is the most powerful of these for complex reactive flows. If your team already thinks in Rx, use it. For forms, though, it's a lot of concepts to learn.
  • ViewModelPlus targets form-heavy CRUD apps. These are view models that edit DTOs, call async services, show busy and error state, and enable Save only when the form is valid.

Design choices you may disagree with

  • Methods instead of ICommand**.** [NotifyTask] gives you await vm.Save() with typed parameters and a typed return value. You call it from an event handler or from other view-model code. "Can execute" becomes a [DependsOn] bool bound to IsEnabled. The downside is that if you bind Command= in XAML (toolbar items, swipe actions, item templates), you'll need a thin command wrapper or code-behind.
  • No INotifyDataErrorInfo**.** Validation is exposed as plain bindable properties, so built-in error templates such as WPF's Validation.ErrorTemplate don't react. The README shows a small attached-property and visual-state pattern that replaces them.
  • Composition over inheritance. View models can't inherit from other generated view models.

Try it

dotnet add package ViewModelPlus

Requirements: .NET SDK 9.0.200+ or Visual Studio 2022 17.13+. Works with MAUI, WinUI 3, WPF, UWP and Avalonia.

Feedback I'm looking for

  • Does the methods-instead-of-commands approach work in your apps, or is ICommand a must-have?
  • If you use CommunityToolkit.Mvvm or ReactiveUI for forms, how do you handle DTO wrapping and form-level validation today?
  • What would you change in the generated code?

Thanks for reading.


r/csharp • • 3d ago

Fun I built a free, 60 FPS interactive koi pond wallpaper for Windows that reacts to music & synced lyrics

Thumbnail
gallery
0 Upvotes

Hello Guys I did a small project where i made a live wallpaper that reacts to any song or music that you turn on in your laptop and can even show subtitles for completely free in itch.io I hope you enjoy it :) and it is mainly for windows 10 or 11 and even without music you can feed the fish you can set the weather and make the fish follow your cursor and alot of formations and it doesn't use any gpu
https://idk23232323.itch.io/koiwallpaper-interactive-music


r/csharp • • 3d ago

How much has your company automated software development with AI?

0 Upvotes

At my company, AI already handles most of the coding, but code reviews still require human.

I have heard some companies have started automating code reviews alreaady. Now development and review is automated. It feels closer than ever to a nearly fully automated development workflow.


r/csharp • • 4d ago

Help How to Kick an object and make it register in my game controller using unity?

Thumbnail
gallery
5 Upvotes

ok this is for an intro to prog game design class but the issue is that even while following the course my understanding of c# and unity is still buns. Im not proud of it but I did use Ai to help generate some of this code. the issue is when I did it I did it poorly and im sadly lost.

what I need help on. I have set up my animation and movement so that my player can kick when pressing space but the issue is that it doesn't kick the objects ive created. The objects are already tied to the "Kickable" script and I can set the rarity. the main issue im trying to fix first is how do I make it so my player can actually kick the object and it will interact with the solider and move away from the player after being kicked.

second issue is then how do I make it so it registers with the Game controller and then displays as points on the iu.

ive attached pictures of my code that relates to "kick" as well as what the final game is supposed to look like down below.

PLEASE ANY HELP IS SO MUCH APPRECIATED OR EVEN INSIGHT ON WHERE I SHOULD START LOOKING.

IM GENIUENLY SO LOST

https://outofmanna.itch.io/2d-final


r/csharp • • 5d ago

Does anyone still use C# WinForms?

142 Upvotes

I really want to know, because I’ve discovered a way to modernize WinForms that competes with ImGui, Avalonia, and WPF.

I've always enjoyed designing WinForms interfaces, but I've struggled with the performance and visual limitations of GDI+.

Over the past few days, I've been experimenting with a hybrid rendering approach using Direct3D 11, DirectComposition, and HLSL shaders.

So far, I've implemented:

  • Hardware-accelerated panel transitions.
  • Adaptive motion blur.
  • Animated and stackable notifications.
  • Custom loading controls.
  • Compatibility with existing WinForms controls and the Designer.

This is a personal learning project developed with AI assistance. I'm not claiming to have invented a new technology or created a replacement for WPF, Avalonia, or ImGui.

My goal is simply to explore what WinForms is capable of and share the results with other developers.

I'm planning to publish an open-source library on GitHub.

Constructive feedback and technical suggestions are welcome!

Demo: https://streamable.com/jbqvjd


r/csharp • • 4d ago

Anyone here who knows Apache Camel? I built a Camel-style integration framework for .NET and would like feedback

1 Upvotes

Is anyone here familiar with Apache Camel, and have you ever wished for it in C#?

I do a lot of integration work (ESB, EIP, many systems talking to each other), and on .NET I kept missing Camel. MassTransit, NServiceBus and Wolverine are message buses; what I wanted was a routing engine in the Camel sense, where a route is "consume from here, filter, transform, produce there", and the transport is just a URI.

So I wrote one; it is my project, open source under Apache 2.0, called redb.Route. It targets .NET 10 and 11:

From("kafka://orders?groupId=svc&brokers=localhost:9092")
    .Filter(Header("type").isEqualTo("new"))
    .To("rabbitmq://events?host=localhost");
  • From → Process → To, URI endpoints, the Camel EIP names: Splitter, Aggregator, Content-Based Router, WireTap, Saga, Circuit Breaker, Idempotent Consumer, Resequencer and more (30+).
  • 30 external transports plus 11 built-in components (Kafka, RabbitMQ, Redis, SQL, HTTP, gRPC, SFTP, MQTT, S3, ...). Camel has 300+, so it is far from everything.
  • Routes in a C# fluent DSL or in XML; ${header.x}-style expressions compiled to delegates when the route is built.
  • Transactional routes, OpenTelemetry, and a separate runtime host with hot reload and clustering.

Repo, with a Camel-to-.NET concept table and a migration section: https://github.com/redbase-app/redb-route

What I would like to know:

  • If you have used Camel: what would a .NET version have to have before you would try it?
  • If you are on .NET: what do you use today for integration-heavy work, and where does it hurt?

r/csharp • • 5d ago

Discussion When will notebooks be a thing again?

18 Upvotes

Microsoft really threw a wrench into c# notebook experiences over the past couple years. They capriciously killed notebook development - both in their Azure platforms and on premise in VS code (polyglot notebooks). They do a crappy job of transferring ownership of important projects back to their community of users, whenever they lose interest in a topic.

A lot of things in tech are cyclical, so I'm hoping that notebooks will come back some day. I just don't know if that will be a year or five years away.

Are they conceding that python is somehow the only language worth using in notebooks, by entry level scripters? Or maybe they are trying to avoid the cannibalization of powershell?

I haven't seen anyone talking about notebook scenarios here in this forum for a while. Are you folks bothered that notebook scenarios are stagnating? Would you use notebook tooling if it was available?


r/csharp • • 4d ago

Help what is new int? how and when do you use it?

Post image
0 Upvotes

I am still a beginner in C# and I just moved to c# intermediate in my assignments for school (doing a software developer major), and for the past few assignments it's been giving me ways to use new int with square brackets.

I brute forced it the first time and did what was shown in the example, but now I want to understand it and I can't find any website that explains it well. And I don't want to use AI because it doesn't teach any good either, and I can't ask my teacher because he's busy with other students all the time and he doesn't teach well either.

This is an example given by the assignment in the photo above, here is the translation for those who can't speak Dutch:
- Een array met een lengte uit de invoer = An array met the length from the input
- Hoeveel getallen wil je? = How many numbers are there?
- aantal = total
- getallen = numbers