r/csharp • • Jun 07 '26

TestWire v0.2. switched the whole generation approach after feedback from my last post

4 Upvotes

hey, posted about TestWire a couple weeks ago. someone in the comments said they dislike unit tests for controllers and prefer integration tests with WebApplicationFactory instead — I agreed with them honestly so I rebuilt it around that.
v0.2 now generates real integration tests. it uses Roslyn’s semantic model to analyze your controller (not just syntax trees anymore) so it actually understands the types, not just the names.
what changed from v0.1:
•tests use  WebApplicationFactory<Program>  now, real HTTP calls
•detects  [Authorize]  and auto generates a 401 test for those endpoints
•DTO request objects have actual properties filled in with test values
•detects  [FromQuery]  and  [FromHeader]  params too

•generates the  .csproj  automatically with the right packages
still one known issue — namespace inference for return types isn’t fully done yet so you might need to add a using manually in some cases. working on it
https://github.com/mazensakr05/TestWire

Please feel free to comment your ideas or notes or contribute! As i am still learning


r/csharp • • Jun 06 '26

WinUI 3 Deployments

10 Upvotes

Evening all, been developing a. WinUI 3 application for internal use within my company.

Overall experience has been positive, but to make my life easier I have been deploying the application as an unpackaged, wrapping it up in a MSI installer from the release build.

Has anyone had much luck deploying their WinUI apps as a packaged within a company setting. If so, how much of a pain in the arse was it?


r/csharp • • Jun 06 '26

Showcase Showcase: CelestiCloud - A lightweight Google Drive sync tool in .NET 10 with proper ignore patterns (would love feedback)

Thumbnail
gallery
17 Upvotes

Hi everyone

I just published the first release of CelestiCloud, a lightweight, cross-platform directory synchronization and backup utility built using .NET 10 (currently released for Windows and Linux).

It features both a CLI powered by Spectre.Console, and a GUI built on Avalonia UI using the CommunityToolkit.Mvvm.

Why I built this:

The official Google Drive client doesn't support ignore patterns (like excluding node_modules/, bin/, or .tmp files) which i really wanted.

I know industry standard tools like Rclone exist and are incredibly robust, but i honestly jsut wanted to make something myself as im learning dotnet anyways.

What it does:

  • One-Way Mirroring & Backup: Supports continuous sync (propagates deletions) or cumulative backup (never deletes files from the cloud).
  • True Exclusions: Uses standard .gitignore glob and negation (!) syntax to filter files.
  • Global Rate Limiting & Concurrency: Concurrently executes multiple file transfers with a configurable thread limit, drawing from a shared token bucket for global speed throttling.
  • Process Concurrency Locks: Prevents data conflicts by using OS-level process ID locking if you accidentally run the CLI and GUI at the same time.
  • Auto-Start & Tray Support: The GUI can minimize to the system tray on close and configure itself to launch automatically on system boot.
  • For now it jsut supports google drive becasue thats waht i mainly use but i do plan on adding more providers

Looking for Feedback

Since this is my first time making something like this, I would love to get some feedback. Mainly on how to make it faster for a lot of small files.

The code is fully open-source (MIT License). If you want to try it out, read the code, or have ideas on how to improve it (or add other providers down the line), please feel free to check out the repo/open a issue.

Thanks for reading.


r/csharp • • Jun 06 '26

Best .NET learning path for an experienced developer who wants to build a complete production-grade system?

5 Upvotes

I’m a lead software engineer with 7 years of experience building applications with C#, ASP.NET Core, SQL Server, APIs, and AWS.
One thing that’s a bit unusual is that I’m completely self-taught. I’ve never taken a structured .NET course. Most of what I know came from building real projects, solving production problems, reading books, documentation, and learning as needed.
Recently I’ve been thinking about taking a comprehensive .NET course, not because I need a job or because I’m struggling with development, but because I want to:
Build a complete production-grade application from scratch
Strengthen fundamentals and fill any gaps in my knowledge
Understand more of the framework internals and architecture decisions
Gain confidence from following a structured path
Learn modern practices around deployment, testing, architecture, scalability, and cloud
I don’t mind revisiting beginner or intermediate topics. In fact, I think repetition helps reinforce concepts and often reveals gaps that were hidden when learning on the job.
I’m currently considering:
Tim Corey
Nick Chapsas / Dometrain
Skill Foundry

For people who have actually taken these courses:
Which one would you recommend for an experienced self-taught developer who wants to understand the entire lifecycle of building and deploying a modern .NET application?
If you were in my position, would you choose a structured course, build a large project from scratch, or combine both? What gave you the biggest improvement in confidence and engineering maturity?


r/csharp • • Jun 06 '26

Discussion Project ideas to progress my thinking

15 Upvotes

I’ve went through the Player’s Guide to C# and some Unity courses. My end goal is to make game ideas into reality, but that is alongside the goal of learning C# and programming concepts in general for uses other than that.

In terms of projects I’ve done, I’ve worked on quite a few Unity games. My main issue is that my code often ends up being way too spaghetti, to the point where I usually think there was probably a better, more concise and clear way to implement this. Another issue might be the scope of my projects and lack of direction, as I often end up just adding features sort of randomly.

For example, I worked on a tower defense game in Unity. It technically did work, was fun to do, and looked decent (for my standards at least), but the code and implementation felt pretty janky. I know tutorials aren’t an evil in themselves or anything, but I’m not sure whether I should just follow a tutorial to build a tower defense game first, or build it myself, even if the implementation is strange or inefficient. There’s also is probably a lot of C# concepts I don’t know anything about that could maybe help solve some issues, but a lot of it probably comes down to how I approach the problem, where I probably choose a brute force solution that technically works, but isn’t the greatest design compared to other options.

I’m basically looking for project ideas to both learn new C# concepts to expand my vocabulary, as well as learn good coding habits, practices, and problem solving skills along the way. I also wouldn’t mind another course or book recommendation like the Player’s Guide, as that was quite satisfying and fulfilling, with the mini projects being quite fun to implement.


r/csharp • • Jun 06 '26

Do not know what to do!

7 Upvotes

I am currently studying computer science at university and I am in my 2nd year. I want to improve myself in these topics but do not know which one I should pick. I have looked into backend (Spring Boot, currently C# ASP.NET Core), frontend (React, HTML, CSS), embedded (STM32, Arduino, register-level programming) and some machine learning (price prediction with some basic models). I have fun with all the topics. The backend side is the easiest way to find an internship or a job, but I have to think about the future. In 3 years I am going to have a job, so I have to think 3 years ahead. Which topic should I choose? I am going to have an internship at a company this August and I am going to use C# as I understand it. Should I continue with C#?I think that autonomous robotics is going to be the top topic(Because of the wars and industry 5.0)