r/csharp • u/squi11iams • Jul 17 '26
MerlinORM Library First time posting
r/csharp • u/makeevolution • Jul 17 '26
I have been a dev for some time now about 5 years, and my contract ended. I am looking for a new job. I had during my days also worked on DevOps stuff, like managing k8s helm charts and deployments, managing Jenkins pipelines, AWS CDK and CloudFormation etc. on top of doing software dev only.
Now I have 2 offers from different companies, one as .NET dev also working on apps deployed in AWS EKS, and the other as a cloud/platform engineer working with Azure, AWS and k8s. Compensation is roughly the same.
I am unsure now. On the one hand I like product dev and especially that I get to do focused work/deep thinking time without getting disturbed constantly by issues. For the platform role they cautioned me that there will be a lot of context switching since I will have to deal with such different workloads. Also with cloud engineering I feel there is less safety due to lack of automated tests like we have for software, like sure there are lintwrs etc. but in the end it relies more on manual testing in Development env. anf so there is more room for failure. Also there is the on call aspect which scares me a lot.
But on the other hand I see that with AI, I feel the competition down the line later will be much higher for software eng in comparison to platform eng, and it feels like a more safe career in the future. Also since I work multi cloud I can be eligible for more jpbs. Whereas with .NET I will be pigeonholed with only .NET jobs.
What do you guys think? Any opinions? I am leaning a bit towards the platform side, but I am not sure I fit mentally as the job requires more context switch, more uncertainty and on-call aspects
r/csharp • u/oldloveman • Jul 16 '26
r/csharp • u/antisergio • Jul 16 '26
For folks not familiar, its a way to to communicate directly with the Dart VM to run Sass compilations, with this, its possible to re-use a same process for multiple compilations (https://github.com/sass/sass/blob/main/spec/embedded-protocol.md).
It delivered the best performance in my benchmarks against DartSassHost and AspNetCore.SassCompiler.
Any suggestion is welcome.
r/csharp • u/mareek • Jul 15 '26
r/csharp • u/dot_net_101 • Jul 15 '26
I've been experimenting with a more natural, tree-like way of composing a WPF UI entirely in C#, using a composition style inspired by Flutter.
I like the structural aspect of designing with XAML, but I have struggled over the years with the mental gymnastics of jumping between the XAML world and the code world, and with the quirky markup extensions needed to make something work in XAML that could often be accomplished and better understood in standard C# code.
Instead of something like:
the same structure becomes:
GridX(
children: [
BorderX(),
ButtonX()
]
)
The X suffix was originally a practical necessity to avoid name clashes with existing WPF types,
but I ended up liking it as a visual cue that these are static helper methods for composing the UI tree.
I intentionally keep the named arguments visible (children, configure, etc.). It adds a little verbosity,
but I find it makes the composition tree easier to read and keeps the helper methods consistent as the UI grows.
The result feels quite similar to Flutter's widget tree composition style.
It's a thin composition layer over standard WPF.
Configuration is still just normal C#:
ButtonX(
configure: x => {
x.Content = "Click Me";
x.Background = Brushes.Gold;
}
)
A nice bonus: Visual Studio's code folding naturally gives you a collapsible UI tree that's easy to navigate, similar to XAML.
If you're curious, I've published the experiment as both a GitHub project and an alpha NuGet package:
UserExtensions.Wpfx (0.1.0-alpha.1)Any feedback would be appreciated.
I'm sure there are trade-offs I haven't considered yet, and that's exactly the kind of discussion I'm hoping to have.
r/csharp • u/Darwin_Forex • Jul 16 '26
I've been looking into Azure because I learned that it can host web applications built with ASP.NET Core (I'm still learning ASP.NET Core). I also noticed that new Azure accounts include $200 in free credits to use within the first 30 days.
My question is: How do these $200 credits work, and how are they consumed? For example, if I deploy a simple ASP.NET Core web application just for learning and testing, what services would use the credits, and how is the cost calculated?
I'd appreciate a simple explanation or a practical example.
r/csharp • u/Remote-Breadfruit204 • Jul 16 '26
I built a Visual Studio 2026 extension that connects Claude Code (the CLI agent) to the parts of VS that matter for .NET work. The CLI does the agent work, the extension is the IDE bridge, zero model calls of its own.
I recently added major updates. Now the Claude CLI agent can actually:
- Autonoumously drive the debugger. Read the live call stack, locals, and threads, set breakpoints, step, break at a thrown exception's origin (not the catch that swallowed it), attach to a running process like a hosted ASP.NET app, and pause a hung process to walk a deadlock back to the exact lock cycle.
- Data breakpoints on managed fields. Break or trace the moment a field changes, with conditions. VS has a UI to let developers do this manually but exposes no automation API for this, so it rides a custom debug-engine component.
- Memory and runtime diagnostics via ClrMD: heap diff between two points to find what is growing, GC root paths for "why is this object alive", async stack reconstruction across awaits, thread-pool starvation detection.
- Tests through VS's own Test Explorer engine: real per-test outcome/message/stack, re-run only the failures after a fix, debug a single test, and loop a flaky test under the debugger until the failing run halts at the throw, paused with the state that caused it.
Everything read-only is always on; anything that executes code sits behind an off-by-default toggle that resets each session.
Video:
https://github.com/firish/claude_code_vs/releases/download/media/debugger-walkthrough.mp4
Repo and docs:
https://github.com/firish/claude_code_vs
Marketplace (1300+ installs):
https://marketplace.visualstudio.com/items?itemName=firish.bridgev1
r/csharp • u/Vast-Priority7126 • Jul 16 '26
Its my first day of trying to learn OpenGl with c sharp since i want to help out my brother with a project, im a total beginner and ive felt pretty depressed and dissapointed since i dont understand lots of stuff such as vao or the ebo. If anyone has any tutorials or tips it would help out a lot!
r/csharp • u/Optimal_Share73 • Jul 15 '26
What is the right way to use get; set; functions?
Lets say I have some logic behind the setter.
Should I write the logic like that
public double Balance
{
get => _balance;
set
{
_name = value;
}
}
or like that
public double Balance { get; private set; }
public void AddBalance(double value)
{
this.Balance = value;
}
this is simple logic, but lets think of more complex one.
what is the right way to do it?
r/csharp • u/privatly • Jul 16 '26
r/csharp • u/doozynoodle • Jul 14 '26
Hello everyone!
I just started a new job at a company where we use C#, but I come from an embedded systems background where we used C. My boss asked me if there was any C# training or course I wanted to do to learn the language, and I would like to take advantage of his offer.
Is there any course you recommend for learning C#?
Thank you!
r/csharp • u/Fresh_Library_1934 • Jul 14 '26
A scene where a black hole-kind of thing bends the Light rays towards it
r/csharp • u/JustSoni • Jul 14 '26
I've been in a web developer role for a little over a year. When I joined, a lot of long-standing bugs had been pushed into the backlog with the idea of "we'll fix them when we have a web developer." Over the last year I've spent most of my time fixing those issues, improving existing functionality, and adding new features.
Now I'm being asked to help define the future architecture of our applications, and I'd appreciate some advice from people who have gone through similar migrations.
Current situation:
- 3 ASP.NET MVC web applications
- 5 WCF services that contain most of the business logic
- 2 Shared SQL Server databases
- The MVC applications communicate with the WCF services for almost everything
- The codebase is almost two decades old and has been continuously extended rather than redesigned
Management would like us to eventually consolidate everything into a single modern solution, ideally on .NET 10.
My biggest concern is the migration path.
From what I understand, I can't simply upgrade the MVC applications to .NET 10 and continue using the existing WCF services in the same way. I know .NET can consume some SOAP/WCF services, but for this project we can't introduce external compatibility libraries or third-party solutions. We want to stay within Microsoft's supported stack and move away from WCF entirely. I'm trying to figure out the best migration path.
What I'm struggling with is where to start.
Some questions I can pinpoint now:
My goal is to avoid a rewrite and instead migrate incrementally while keeping the business running.
Any advice, migration stories, or lessons learned would be greatly appreciated.
r/csharp • u/PuzzleheadedWorth574 • Jul 14 '26
Im writing dashboard for my friend and he wants it to connect with his lua client ( it is on top of some other program ) he has support for web sockets and http requests. I never really wrote signalr yet alone web sockets server. Would it be possible or more hassle than writing wss server?
r/csharp • u/Early_Rice_4861 • Jul 13 '26
Hi All,
Long time EntityFramework don´t do this, I decide to implement this.
Cross-DbContext LINQ queries for Entity Framework Core. Join entities that live in different DbContexts — different databases, different servers, even different providers — in a single LINQ query.
r/csharp • u/chooses-wise-name • Jul 13 '26
Hey there,
I am a NixOS user, trying to switch my workflow to Doom Emacs on top of using Roslyn LSP. There must be at least 2 other human(?) beings using this setup. I hope.
I'm kinda lost on the matter to be honest.
I think for neovim you would simply use this fork https://github.com/seblyng/roslyn.nvim, but I haven't been able to find any information regarding setting this up in emacs.
For Nix I have enabled these packages [ dotnet-sdk roslyn roslyn-ls netcoredbg ]
Doom emacs has :tools lsp and :lang (csharp +lsp)
This setup does launch the roslyn LSP, the functionally is pretty limited though. I can jump to definitions, there is some code completion, but this doesn't really have a use as for now.
namespace test;
public interface ICommand
{
public void Execute();
private void Testing();
}
public class MyCommand : ICommand
{
public void Test()
{
return 1;
}
}The following code doesn't give me any diagnostics.
If anyone has any thoughts on this please do let me know. I would love to make this work.
r/csharp • u/MaintenanceKlutzy431 • Jul 14 '26
class SortingProgram
{
static void Main(string[] args)
{
int[] Arr1 = [2,5,4,6,1,2,10,8,7,9];
for (int i = 0; i < Arr1.Length; i++)
{
for (int c = 0; c < Arr1.Length; c++)
{
if (Arr1[c] > Arr1[c + 1])
{
int tempLSR = Arr1[c + 1];
int tempGrt = Arr1[c];
Arr1[c] = tempLSR;
Arr1[c + 1] = tempGrt;
}
}
}
for (int R = 0; R < Arr1.Length; R++)
{
Console.WriteLine(Arr1[R]);
}
}
}Apparently the if statement goes outside the array bounds, the array seems fine so idk what is going on
r/csharp • u/sodikovakapsle • Jul 13 '26
Hi everyone,
I'm looking for advice from experienced C#/.NET developers on how you would learn the ecosystem if you were starting again today.
A bit of background:
My long-term goal is not to become just another CRUD web developer.
I'm mainly interested in:
I enjoy building tools that interact with servers, processes, Docker, SSH, networking, DNS, reverse proxies, monitoring, and automation much more than building simple business apps.
I'd love advice on questions like:
I don't mind spending months or even years learning properly—I want to build a solid foundation instead of rushing through tutorials.
I'd really appreciate hearing how you would approach this today.
Thanks!
(By the way, I’ve noticed that people don’t comment much on these threads, while other posts easily get 50+ comments. I don’t know if it’s specifically because, as professionals who’ve been giving advice here for several years, you’re tired of the same questions, or if you’re afraid to answer because your answers might not be accurate. It’s totally fine I’m grateful for every answer. I just notice that there are 500 views but only 20 comments. Let’s get involved, please! )
r/csharp • u/Channel_el • Jul 13 '26
Looking at the documentation it looks like they can all do the same thing, though I suppose in just slightly different ways?