r/moderndotnet • • Oct 01 '26

events & meetups Monthly Thread: Local .NET User Group Meetups

5 Upvotes

Promote your local .NET user group / meetups here.

Please include:

  • Location and Time

  • Topic

  • Link to the specific event

  • Anything else that is pertinent for attendees to know

You do not need to be the organizer of the meetup, just an enthusiast!

Also, if you need help launching a local .NET Meetup this is one of the things the .NET Foundation can help with! Please see .NET Meetups @ .NET Foundation


r/moderndotnet • • 20d ago

events & meetups Monthly Thread: Local .NET User Group Meetups

4 Upvotes

Promote your local .NET user group / meetups here.

Please include:

  • Location and Time

  • Topic

  • Link to the specific event

  • Anything else that is pertinent for attendees to know

You do not need to be the organizer of the meetup, just an enthusiast!

Also, if you need help launching a local .NET Meetup this is one of the things the .NET Foundation can help with! Please see .NET Meetups @ .NET Foundation


r/moderndotnet • • 6h 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 • • 18h ago

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

Thumbnail github.com
16 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 • • 10h 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)

2 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 • • 11h ago

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

Thumbnail reddit.com
1 Upvotes

r/moderndotnet • • 19h 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 • • 22h 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 • • 2d ago

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

18 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 • • 2d 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 • • 2d 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 • • 3d ago

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

11 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 • • 4d 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 • • 5d ago

Fluent UI Blazor v5.1 released

Thumbnail reddit.com
2 Upvotes

r/moderndotnet • • 5d ago

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

Thumbnail
stenbrinke.nl
12 Upvotes

r/moderndotnet • • 6d ago

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

8 Upvotes

r/moderndotnet • • 6d ago

FCQRS.Workflow: Durable code that resumes where it stopped

Thumbnail onurgumus.github.io
2 Upvotes

r/moderndotnet • • 7d ago

an C# Replace Native Skia? Building SimdSkia for Avalonia and NativeAOT

2 Upvotes

我正在构建SimdSkia,一个开源的.NET二维渲染引擎,配备了C# CPU光栅器、SIMD加速、类似SkiaSharp的API和Avalonia渲染后端。
动机很直接。我想探索桌面图形栈在减少原生Skia负载并保留熟悉绘图API的同时,如何转移到托管C#中。

该项目面向 .NET 10,并使用 MIT 许可证。 源代码与示例


r/moderndotnet • • 7d ago

TenantGuard 1.0: tenant isolation checks for EF Core

3 Upvotes

Hey everyone, small side project that I've been working on. I've released TenantGuard 1.0.0, an open-source set of packages for EF Core 10 and 11. It's for applications that use query filters to keep tenant data separate, and it's licensed under Apache-2.0.

A new entity can be missing its tenant filter. An IgnoreQueryFilters() call or raw SQL query can bypass an existing one. These mistakes can be hard to spot when the code looks reasonable on its own.

TenantGuard checks for problems at several points:

  • At build time, five Roslyn analyzers (TG001–TG005) flag IgnoreQueryFilters() calls without a stated reason, raw SQL without a tenant-column comparison, and filter switches such as ABP's IDataFilter.Disable<IMultiTenant>(). The SQL checks cover EF Core, Dapper and ADO.NET.

  • At startup, 14 model rules check for missing tenant filters, filters frozen to one tenant by a captured constant or local variable, unique indexes that apply across tenants, and missing tenant indexes.

  • During SaveChanges, the write guard throws before an insert, update or delete involving another tenant's row reaches the database. It also rejects moving a row to another tenant.

  • In tests, the isolation probe seeds a row per tenant and checks isolation for reads, Find, updates, deletes and Include. Each check appears as a separate xUnit v3 or TUnit test.

Version 1.0 adds write checks for owned entities. For example, a change to order.Shipping.Street is checked against the tenant of the owning order.

Here's how to configure the write guard and startup validation:

builder.Services.AddDbContext<AppDbContext>(options => options
    .UseSqlServer(connectionString)
    .UseTenantGuard(tg => tg.CurrentTenant(ctx => ((AppDbContext)ctx).TenantId)));

builder.Services.AddTenantGuardStartupValidation<AppDbContext>();

It works with custom query filters, Finbuckle.MultiTenant and other tenancy libraries. For Finbuckle, it reads IsMultiTenant() without extra configuration. You can also run dotnet tenantguard validate in CI to check the model without a database.

If you try it on an existing application, I'd like to hear about false positives or leaks it misses. Open to any sort of feedback and critical feedback very much welcomed.


r/moderndotnet • • 8d ago

Built a lock free, thread-safe, token bucket rate limiter for .NET

8 Upvotes

Spent the past few days building a token bucket rate limiter and wanted to share it, mostly because I learned more doing this than most tutorials have taught me in a while.

The short version: it’s a token bucket, capacity + regen rate, standard stuff. The part I actually care about is that it’s thread-safe with zero locks. Every state change builds a new immutable snapshot and publishes it with Interlocked.CompareExchange, retrying if another thread beat it to the swap.

A few decisions:

* `Tokens`/`Capacity` are `int` on the public API, but tracked as `decimal` internally. Didn’t want to expose fractional tokens (a token is one unit of work, doesn’t make sense to split one), but `Regen` needed to support fractional rates, and the internal math needed the precision.

* There's a plain bool overload, and a `Result` enum overload (`Authorized`, `Insufficient`, `ExceedsCapacity`, `Disabled`, `NeverRefills`) so callers can tell “wait and retry” apart from “this will never succeed” Each method comes with a `retryTime (overloads without)`.

* Takes a `TimeProvider` so tests don’t have to sleep real seconds.

Repo’s here. README’s got the full API and an explanation of the design if you want the details.


r/moderndotnet • • 7d ago

Looking for Contributors: An Alternative .NET Agent Framework

Thumbnail
reddit.com
0 Upvotes

r/moderndotnet • • 7d ago

how do you transition from writing "code that just works" to "highly performant, production-grade code"?

0 Upvotes

Hi everyone,

I’m a full stack developer (mostly working with ASP.NET Core / C#), and I’m currently focusing on leveling up my engineering skills.

Right now, I can confidently write code that solves the business problem and passes the tests. However, I want to shift my mindset from just writing "code that works" to writing "optimal, highly performant code" that scales well, similar to the standards at big tech companies.

I have two main questions for the experienced engineers here:

  1. Performance & Code Quality:

When you are reviewing code or writing a new feature, what is your mental framework for optimization? What are the biggest "red flags" you look for in a PR regarding performance (e.g., memory leaks, inefficient time complexity)? How do you train your intuition to write optimal code from the start?

2. Architecture Trade-offs:

When starting a new project with complex business rules, how do you decide on the architecture? How do you know when a Modular Monolith (like Onion/Clean Architecture + DDD) is enough, and when Microservices are an absolute must? How do you avoid over-engineering in the early stages?

Any recommended mental models, profiling tools, or resources would be highly appreciated.

Thank you in advance!


r/moderndotnet • • 8d ago

Self-Hosted platform for agentic apps in C#

2 Upvotes

A few weeks ago we had a post about GenHTTP Lambda, a platform that allows a coding agent to write and deploy C# apps via MCP. The platform brings common features and governance for every app, such as databases, versioning, analytics or logging. Currently we have around 100 apps deployed, serving several hundred thousands of requests a day.

Our main goal is still to test the stability of the underlying web server, especially the ioxide engine.

Therefore we decided to provide a community version of the platform as a docker image, with the same feature set but a different landing page. If you want to try it, you can run the following docker command:

docker run -d -p 8080:8080 -v lambda-data:/data -e LAMBDA_ADMIN_TOKEN=secure-password genhttp/lambda

You can access the platform via http://localhost:8080 and connect your agent to the MCP server, for Claude this would be:

claude mcp add --transport http genhttp http://localhost:8080/mcp

Afterwards you can run a prompt such as

Create a multiplayer game and deploy it to my local GenHTTP Lambda instance.

Your agent will use the MCP server to create a lambda and host it on the platform running on your device. It will hand you an editor key that allows you (and your agent) to further change the lambda and to view statistics.

You can deploy and run the docker image wherever you want, for example on a home lab server or on a VPS. Code is MIT licensed and will stay open source.

Happy for any feedback on this :)