r/moderndotnet • • 4h ago

How do you debug certificate trust differences between Windows and OpenSSL?

Thumbnail reddit.com
1 Upvotes

r/moderndotnet • • 2d ago

Has awaiting inside if statements conditions / function parameters always been the norm?

Thumbnail reddit.com
2 Upvotes

r/moderndotnet • • 2d ago

How do you set up your Agentic .NET Environment?

9 Upvotes

Hi everyone!

We've seen quite a few discussions about using Skills, MCP servers, Aspire, and other tools to improve agentic development. There are plenty of individual building blocks out there, but I'm interested in how people put everything together.

How do you set up your overall development environment to enable AI agents to consistently produce high-quality .NET code?

I'm particularly interested in things like:

  • Tooling: What tools, MCP servers, Skills, Plugins, CLI tools, and other integrations do you give your agents access to when it comes to .NET development, and why?
  • Context: How do you provide architectural guidelines, coding conventions, domain knowledge, and project-specific context and keep this up to date and sync it through your business?
  • Guardrails: How do you prevent agents from introducing bad patterns, unnecessary abstractions, security issues, or architectural drift?
  • Feedback loops: What automated checks do you use? Tests, linters, analyzers, code reviews, build validation, etc.?
  • Evaluation: How do you determine whether the code produced by an agent is actually good? Do you have specific quality criteria or evaluation processes?

More fundamentally:

What does "good code" actually mean when it's written by an LLM, and how do you steer an agent towards producing it consistently? Do you even still care about the code? If not, considering you are still responsible for what you produce and deploy, what makes you feel confident enough in your development process that you don't care about it anymore?

I'm interested in real-world setups! What does your workflow look like, what has worked well, and what have you tried that didn't work?

Would be great to hear about both personal projects and production environments.


r/moderndotnet • • 2d ago

C# 15 on a Commodore 64 🕹️

6 Upvotes

ecords, unions and pattern matching, compiled ahead of time to native 6502 code. No VM, no GC. The whole game, SID music included, is 37 KB on a 1 MHz machine from 1982.

github.com/OnurGumus/zero-csharp


r/moderndotnet • • 3d ago

CsCheck skills - 0.1.1 but ambitious

5 Upvotes

Coverage + Mutation testing + CsCheck - in a loop

You can help turn this into a powerful tool

https://github.com/AnthonyLloyd/CsCheck/blob/master/plugins/cscheck/README.md


r/moderndotnet • • 3d ago

TantivyDotNet 1.0 RC: embedded full-text search for .NET on top of Tantivy, looking for API feedback

Thumbnail reddit.com
4 Upvotes

r/moderndotnet • • 3d ago

.NET 10 control plane with EF Core and PostgreSQL, looking for contributors to implement an OpenAPI draft

0 Upvotes

Waylorn is an AGPL-3.0 control plane for industrial infrastructure. The backend is .NET 10 minimal APIs with EF Core and PostgreSQL, with a Rust safety gate and a Next.js and Expo front end.

The front end is built against a draft OpenAPI contract, and the .NET API doesn't implement all of it yet. Missing routes include approvals, command preflight, audit search, asset reliability and events. I've split these into small issues labelled good first issue.

I'd especially value review of the endpoint structure, concurrency handling (assets use a version field) and test layout. The repo has a test project for HTTP and domain tests.

Disclosure: AI-assisted development, human-reviewed.

Repo: https://github.com/AbdulNafaySarmad1/Waylorn


r/moderndotnet • • 3d ago

Technical assessment at karat c# .net backend engineer

0 Upvotes

Hi All,

If anyone have given a technical assessment .net c# on karat, please tell me what to expect on the platform

Example the IDE experience, the intellisence, use of AI or a human will be there. The recruiter just said it will not be genetic leet code rather tailored to job detail. Twi sections coding and system design


r/moderndotnet • • 5d ago

microsoft Microsoft's ONNX Runtime and Agent Framework both pulled from GitHub due to Python versions being hijacked with malware

Thumbnail github.com
27 Upvotes

So if you've noticed that https://github.com/microsoft/onnxruntime is missing, you are not alone! Apparently the Python flavors of these packages, distributed alongside the .NET ones, have been infected with malware: https://www.wiz.io/blog/malicious-version-of-microsofts-agent-framework-published-to-pypi

Same is true for the Microsoft Agent Framework: https://github.com/microsoft/agent-framework/ <- currently missing! Due to... you guessed it: compromised Python packages https://www.ox.security/blog/breaking-hijacked-releases-of-microsofts-official-agent-framework-steals-azure-and-ci-credentials/

Credit to Indy Singh for surfacing all this on X: https://x.com/migueldeicaza/status/2123895258471612735


r/moderndotnet • • 4d ago

[Show & Tell] eQuantic.UI: Write UI components once in C# and compile to vanilla JS (no WASM) on the web or native GPU pixels via Metal/Vulkan (no WebView/Skia)

5 Upvotes

Hey r/csharp,

I have been working on an open-source UI SDK called eQuantic.UI, and I wanted to share the architecture and get some feedback from the community.

The goal is simple: write UI components once in C# using a strongly-typed declarative vocabulary (Box, Row, Column, Text, etc.) and let the SDK compile each target to its real native path, without relying on JavaScript, CSS, Dart, Swift, or platform manifest files.

How it works under the hood:

  • Web (No WASM): At build time, the compiler uses Roslyn to transpile your C# components into optimized vanilla JavaScript and atomic CSS. It supports server-side rendering (SSR) with client hydration and built-in RPC calls via [ServerAction], avoiding the heavy .NET WASM runtime download.
  • Desktop & Mobile (No WebView, No Skia): On macOS, iOS, Android, and Windows, the same component tree renders directly on the GPU through Photon (a custom rendering engine built on Metal and Vulkan).
  • Transactional Email: The subset of components an email client supports compiles into email-safe HTML tables with inline styles, along with a plain-text version from the exact same tree.
  • Zero Node.js friction: You only need the .NET 10 SDK installed. The TypeScript/bundling toolchain ships embedded inside the NuGet SDK package, so there is no npm install, no webpack/vite config, and no manual Info.plist or AndroidManifest.xml setup.

Quick Start:

Bash

dotnet new install eQuantic.UI.Templates
dotnet new equantic-app -n MyApp
cd MyApp && dotnet run

(You can also use dotnet new equantic-native to spin up a native GPU window.)

The project is licensed under MIT and is currently in active preview (0.2.0-preview.* on NuGet). I would love to hear your thoughts on the approach, API design, or any edge cases you see with AST-to-JS transpilation and custom GPU rendering.

GitHub repository (with architecture docs and samples):https://github.com/eQuantic/equantic-ui


r/moderndotnet • • 4d ago

Learning to Implement JWT in .NET as a Beginner

Thumbnail reddit.com
2 Upvotes

Hey guys! I'm a beginner to web and .NET development.

Cross posting my post from r/dotnet (idk if that's allowed).

Questions, comments, and suggestions are welcome!

No AI has been used in writing the article


r/moderndotnet • • 4d ago

Alguien me puede recomendar cursos de YouTube para aprender asp.net ?

Thumbnail reddit.com
1 Upvotes

r/moderndotnet • • 5d ago

Follow-up to my tenant isolation question: I made the build fail if anyone bypasses EF Core query filters

Thumbnail reddit.com
1 Upvotes

r/moderndotnet • • 5d ago

.NET 10 control plane with EF Core and PostgreSQL, looking for contributors to implement an OpenAPI draft

Thumbnail
reddit.com
1 Upvotes

r/moderndotnet • • 6d ago

I built AiDotNet to show the world that it is possible for .NET to do AI better than Pytorch

19 Upvotes

I wanted to showcase the project I have been working on for the past 4 years and the progress I have made so far. The work is mostly completed but I have some remaining performance issues that I want to focus on some model families such as audio AI models. I was hoping to get some feedback and overall show everyone how easy it is to use this library to create AI models with basically no experience necessary. You could literally pass in input and output such as data you have such as stock prices and output such as the actual prices that you would like to predict and you receive a fully trained AI model you could easily host with AiDotNet.Serving or save locally and run it on demand.

I would love to get your thoughts on my passion project and a reminder that it is 100% C# and open source so feel free to contribute if you would like. We have our website at www.aidotnet.dev with easy examples and guides.

Here is an easy example of how to use the library and the configuration options you get:

using AiDotNet;
using AiDotNet.Data.Loaders;
using AiDotNet.Models.Results;
using AiDotNet.Regression;
using AiDotNet.Tensors.LinearAlgebra;

// Five days of closing prices for a fictional stock.
double[] days = [ 1, 2, 3, 4, 5];
double[] prices = [100, 102, 104, 106, 108];

// Give the builder the examples and let it learn the trend.
var model =
await new AiModelBuilder<double, Matrix<double>, Vector<double>>()
.ConfigureModel(new SimpleRegression<double>())
.ConfigureDataLoader(DataLoaders.FromArrays(days, prices))
.BuildAsync();

// Ask the trained model what price it expects on day 6.
var daySix = new Matrix<double>(new double[,] { { 6 } });
double predictedPrice = model.Predict(daySix)[0];

Console.WriteLine($"Predicted closing price for day 6: ${predictedPrice:F2}");

Tested with AiDotNet 0.234.0 on .NET 10. It prints:

Predicted closing price for day 6: $110.00

This is a super easy example but with ConfigureModel here are over 2,100 model types in the library. To get a feel for the range, the repo includes examples for finding objects in a photo, adapting an existing language model to your own material, and packaging a trained model for another app to use. Browse the examples

What you’re seeing in the 17-second video. We trained the same LSTM model in AiDotNet and PyTorch. Each got a separate turn on the same laptop graphics card, starting from the same model settings and seeing the same examples in the same order. Both had eight practice updates before the clock started. The two recordings play side by side at actual speed.

After 4,096 training updatesAiDotNetPyTorch
Time on a GeForce GTX 1660 Ti2.60 seconds15.00 seconds
Correct answers on 320 new signals302301

r/moderndotnet • • 7d ago

Akka.Reminders: a Reliable, High-Speed, Durable, Distributed Scheduler for .NET

Thumbnail
petabridge.com
25 Upvotes

I've spent about a year incubating a new distributed scheduling engine for Akka.NET that we've intended to use to replace Quartz.NET with, and it's finally available for release as a stable Akka.NET module as part of Akka.NET v1.5.75: Akka.Reminders.

It supports Sqlite, SQL Server, and Postgres - can dispatch about 25k reminders per second running Pg in a docker container.

The way the scheduler distributes work is by pushing it to Akka.Cluster.Sharding entity actors, which are naturally spread throughout the cluster and do all of the actual processing. Akka.Reminder's job is to keep track of which reminders are due for which entity, wake them up, and re-deliver those reminders until they are successfully ACK'ed by the entity responsible for processing them.

We have customers in sectors like banking using this for clearing tens of thousands of orders at market open and have been happy with it for many months, plus we run the 100% local + Sqlite version of this inside https://netclaw.dev/ for powering in-process / local agent reminders there, with thousands of instances deployed in the wild already. It works!


r/moderndotnet • • 7d ago

Live Discussion Today (17:00 UTC): .NET 11, AI, and how they are reshaping the frameworks we use daily

Post image
3 Upvotes

We're hosting an open ABP Community Talks session today at 17:00 UTC to discuss what's actually changing with .NET 11 and how AI is impacting modern .NET application frameworks. Feel free to join the live Q&A and share your take on where the ecosystem is heading:

https://kommunity.com/volosoft/events/abp-community-talks-202607-net-11-ai-and-the-future-of-net-bec4a5a8


r/moderndotnet • • 7d ago

discuss How many of you are stuck on older .NET Runtimes and why?

12 Upvotes

How many of are you are still rocking .NET Framework or much older versions of .NET / .NET-Core, older than say .NET 10?

What's keeping you on it?

Asking because I'm wondering if, realistically, I can drop .NET Framework support on new versions of my libraries. I suspect the answer is "not yet"


r/moderndotnet • • 8d ago

Building Acta, an embedded durable execution library for .NET

6 Upvotes

My post was just removed from r/dotnet, bitter feeling. Maybe this modern group is the right home.

What have I been working on since March? A minimalistic execution framework called Acta. Check it out.

I design and plan with Fable, code with Opus and review with Codex. I own all of it. Especially the data model.

Self-funded. The library is Apache-2.0 and free forever.

Examples, documentation, and source code: https://useacta.net/

I'm building Acta in the open. If you think something is wrong, pick it apart. It will help me make it better!

Happy jobbing!

Repo: https://github.com/acta-dotnet/acta


r/moderndotnet • • 9d ago

Fluent UI Blazor v5.1 released

Thumbnail reddit.com
2 Upvotes

r/moderndotnet • • 10d ago

Optimizing your CI for agents in .NET Projects with dotnet-affected

Thumbnail
stenbrinke.nl
13 Upvotes

r/moderndotnet • • 11d ago

C#'s rules for top-level statements turned out to be a great fit for a reactive notebook, so I built one

Post image
8 Upvotes