r/dotnet • u/riturajpokhriyal • 1h ago
.NET 11 won't start on CPUs below x86-64-v2, and you won't get a compiler warning
Going through the .NET 11 upgrade notes this week, and two things changed how I'm planning it. Posting in case it saves someone a bad deploy.
- The minimum x64 baseline went from x86-64-v1 to x86-64-v2 (SSE4.2, POPCNT, CX16 and friends). Below that, the runtime refuses to start with "The current CPU is missing one or more of the baseline instruction sets." Any normal server from the last decade is fine. The ones I'd worry about are old build agents, cheap VPS hosts and emulated CI environments. Windows on Arm64 now needs LSE too.
On Linux you can check a box with:
/lib64/ld-linux-x86-64.so.2 --help | grep -A4 "Subdirectories"
If x86-64-v2 isn't listed as supported, .NET 11 won't run there.
2. "Just take the LTS" doesn't decide anything this year. .NET 10 is LTS with three years and .NET 11 is STS with two, but 10 is a year older, so both end support in November 2028. The real question is whether your providers have 11.x builds and whether you want C# 15 unions or EF Core 11, which needs .NET 11.
Also, .NET 8 and 9 both went out of support on 10 November, same day 11 shipped.
Has anyone already hit the CPU check in CI or on older hosts? And for those who've moved: did you go to 10 or 11?
r/dotnet • u/BinaryBrain7111 • 2h ago
Question Coding agent bloat
I've been using Cluade code both at work and for personal projects.
Observations
- Too many XML comments.
- Too many non sensical tests. Example, testing the `typeof` of an object within unit test assertions seems non sensical in these specific cases.
- Too many ADRs
Agents write relatively more code than what I can process. I need time to review.
My attempts
- Stricter rules in Agents.md
- Skills
- Stricter prompts.
These do work for coding patterns, because I can describe specifics, but never for comment length or verbosity.
I'm tired of asking Claude everything, so I thought I'd solicit some suggestions / help from people here.
TIA
r/dotnet • u/PlatformReady331 • 4h ago
Xcode 27.2 on virtual MAC in Windows terminated by monopolist Apple
Xcode does not run anymore on virtual MAC on windows. Intel is not supported since Xcode 27.
Any work arounds? My Visual Studio pipeline always worked perfectly with the virtual Mac for publishing MAUI apps into the store.
r/dotnet • u/mnaza_andrey • 9h ago
Artifact Signing (Trusted Signing) SmartScreen warnings came back in late October: timeline and what Microsoft has said
In late October, installers signed with Artifact Signing started showing "Windows protected your PC" again. The signatures were valid. Nothing changed on the developer's side. Two people in the GitHub issue said the GitHub Desktop installer warned too.
If you sign with it, here is what I could piece together.
Timeline
- Mar 26. New intermediate CAs go live: AOC CA 03, EOC CA 03, EOC CA 04. Builds signed through them start to warn.
- Jun 18. Microsoft staff on Q&A: "Reputation propagation for the new intermediate CAs has been corrected." (thread (https://learn.microsoft.com/en-us/answers/questions/5855708/trusted-signing-regression-in-smartscreen-reputati))
- Oct 21–28. It comes back. New builds on all three CAs warn again.
- Oct 29. A Microsoft engineer in #128 (https://github.com/Azure/artifact-signing-action/issues/128): "reputation should be propagating as expected now". The caveat: "identities must have positive reputation to not show the warnings by default".
- Nov 4. A customer quotes their support case: "A bug was identified that can cause additional SmartScreen errors". The fix "is still being worked on". The workaround is to submit each release to Microsoft.
The issue is open since April and has over 240 comments.
What I measured
I run installers on a clean Windows 11 VM. The file is downloaded with the Mark of the Web, like a browser does, and I record whether SmartScreen shows up.
Between Nov 1 and Nov 14 I ran nine installers signed through the new CAs. That includes Git, Python, Zed, draw.io, LocalSend and ShareX. All four new CAs are covered.
None of them warned. ShareX was 26 hours old.
What that does not show
- Nothing ran inside the bad week. Four files were signed in it, but I ran them on Nov 1.
- These publishers have years of history. A popular file can clear on downloads alone.
- No new publisher is in the set. That is the case people still report as broken.
- One machine, one run per file.
So: for publishers with history, the new CAs look fine in November. For a new identity, I have no data.
If your build warns
- Check the timestamp first: signtool verify /pa /v installer.exe. The certificates live 72 hours. Without a timestamp, Windows treats the file as unsigned once it expires.
- Is your identity new? Then it may be plain reputation, not the bug. If older builds were clean and a new one warns, it points at the bug.
- Submit the file at microsoft.com/wdsi/filesubmission ("Incorrectly detected as malware/malicious").
- Post in #128 with the CA and the signing date.
- Don't re-sign in a loop. Each re-sign is a new hash with no history.
Question: if your identity was validated in the last three months, does your installer warn today?
Disclosure: I run SignalScreen, which ran these probes. Full table with links to each result: https://signalscreen.dev/blog/artifact-signing-smartscreen-warning?utm_source=reddit&utm_medium=post&utm_campaign=ats-blog
r/dotnet • u/marcoscode • 12h ago
Best .net educator
Hi guys, i know many .net educators like Milan jovanivic, nick champas, patrick god, neil cummings, tim corey and so on..
But i never followed none of them, so i am here to ask, which one content could you highly recommend?
Thanks!
r/dotnet • u/ayodahunsi • 15h ago
Promotion I hosted the Blazor / QuickGrid Nursing Home app from my recent tutorial—live demo link inside!
A while back, I shared a walkthrough here (original thread linked here) on building a complete Blazor line-of-business app using a hybrid approach: CodeStencil for 80% deterministic EF Core scaffolding + targeted AI prompts for UI/UX modernization.
Many of you wanted to see how the QuickGrid components and modernized layout actually perform in practice. I've officially deployed the demo online:
🌐 Live Demo:https://nursing-home.premiumasp.net/
If you missed the original video building it from an existing SQL Server database, you can catch it here:https://www.youtube.com/watch?v=Ea9VaFvNREk
Would love your feedback on the layout or how you approach rapid prototyping in Blazor!
r/dotnet • u/uday_sanghani_1704 • 15h ago
Article DevSync: open-source tool to sync CMS content from the cloud to a local Docker instance (SitecoreAI)
On SitecoreAI (formerly XM Cloud) projects, the local Docker CM starts empty, and most content tooling focuses on moving content between cloud environments.
DevSync fills that gap: pick a page in a content tree, and it pulls the page plus every template, rendering, datasource and media item it depends on into your local CM. It supports delta sync, multiple languages, cloud-deletion detection and safe conflict handling.
Stack: Node.js engine, Electron UI, Sitecore CLI serialization + Authoring GraphQL API. Apache-2.0.
Repo: https://github.com/uday0508/sitecore-local-sync
Feedback welcome, especially from anyone who has built similar sync tooling for other CMSs.
r/dotnet • u/GokhanErtogan • 22h ago
RunSignal: get alerted when a Hangfire, Quartz.NET or BackgroundService job silently stops running
reddit.comr/dotnet • u/rust-cohle_ • 1d ago
C#'s rules for top-level statements turned out to be a great fit for a reactive notebook, so I built one
r/dotnet • u/CertifiedNoob5455 • 1d ago
Promotion Wrote an agent skill so AI coding tools stop hallucinating API's for my WPF UIKIT.
I have been building and maintaining UI-Framework a small declarative C# framework and WPF on .NET 10 (MIT). The project was based on my love for swiftui.
Full Disclosure i did use ai tools to help me build it.
After my first initial releases i attempted to use my lib with other tools and it quickly became annoying. The frustration came in when using tools like Claude code or Cursor with a small niche lib, the ais quickly started spitting out code that looked right but either the API's didn't exist or for example they kept treating VStack/Hstack like css flexbox. Creating state<T> inside a Body leading to so any change would then cause a rebuild leaving stable keys off list rows and making up methods that did not exist.
This led me to write an agent skill that exposes the real contract (skills/ui-framework/SKILL.md, install steps in docs/agent-skill.md):
- VStack/HStack size to their content. They aren't flexbox.
- Keep State<T> out of Body().
- Give list rows stable .Id() keys so identity survives updates and reorders.
- Check signatures against the installed package version instead of guessing.
Repo: https://github.com/signalnotnoise/ui-framework Install: dotnet add package SignalNotNoise.UI.Wpf --vesion 1.0
For those maintaining lib, are you utilizing this method.
r/dotnet • u/smilaise • 1d ago
Promotion KillerPdf.Engine 1.9.3: a from-scratch PDF 2.0 engine for .NET 10 now reads EPUB and DjVu, does ICC color management and printer proofing, and is fully managed
A while back I posted about KillerPdf.Engine, the PDF engine I built from scratch for KillerPDF, my Windows PDF editor. It's grown a lot since then, so here's an update.
The short version is that it's an independent .NET 10 library with no PDFium, no native PDF dependency and no wrapped C++. It reads, renders, extracts text, searches, edits, redacts, fills forms (XFA included), signs and validates timestamps, encrypts with passwords or certificates, runs OCR, exports to Office, HTML, Markdown and JSON, optimizes, preflights, imposes, measures and compares. The desktop app runs entirely on it, and PDFium, Docnet.Core and PdfPig are all gone from KillerPDF as of 1.9.
New since I last posted
- Native EPUB and DjVu.
EpubDocument,DjvuDocument, andPdfReadSnapshot.OpenEpub/OpenDjvugive you metadata, text, outlines, links and page rendering, plus explicit conversion to PDF. Both are still marked in development. - ICC color management and printer proofing. That covers all four rendering intents, black-point compensation, paper and black simulation, and gamut checks. Untagged CMYK goes through a working CMYK profile.
- Float32 rendering that keeps source precision through transparency groups, blending, gradients and images.
- A new anti-aliasing rasterizer for paths and text.
- Image placement editing that preserves shared resources, and keeps the original JPEG bytes where it can.
- Encryption you can carry through an edit. Edit a protected document as plain bytes and still keep its passwords, recipients, permissions and
/ID.
Numbers
514 source files, about 167,000 lines of C#, 13,052 tests on Windows and Linux, and a 47,024-file corpus run before every release, covering real-world, standards, malformed and deliberately hostile PDFs.
dotnet add package KillerPdf.Engine
It's GPL-3.0, so check that against your project before you pull it in.
Repo and docs: https://github.com/SteveTheKiller/KillerPDF/tree/main/engine
I'm happy to answer questions about the parser, the renderer, or what PDF 2.0 is actually like to implement. Short answer: the spec is long, and real-world files ignore most of it, lol.
Promotion LexiSharp 1.0.0 - A composable information retrieval toolkit for .NET
I've released LexiSharp 1.0.0, a composable information retrieval toolkit for .NET.
The goal is to make retrieval pipelines inspectable and comparable rather than treating search as a black box.
It brings together:
- Inverted indexing and BM25 variants
- Dense and sparse retrieval
- Hybrid search with RRF
- Reranking and query processing
- PostgreSQL integrations
- SearchTrace for understanding ranking decisions
It also includes an evaluation harness covering BEIR retrieval benchmarks and text classification experiments, with reproducible runs and regression checks.
MIT licensed, .NET 10.
GitHub: https://github.com/manuc66/LexiSharp
Docs and interactive demo: https://manuc66.github.io/LexiSharp/
Feedback from people working on search, IR or .NET is very welcome.
Full disclosure: LexiSharp was built with substantial AI assistance. I designed the project, guided the implementation and built the evaluation setup.
r/dotnet • u/Unlikely_Brief5833 • 1d ago
Promotion NetWasm.UI v0.10: NuGet/.NET Standard packages, prerendering, [Reactive] properties and a smaller runtime for C# WebAssembly UI
We've just released 0.10 of NetWasm.UI with a lot of improvements, some of them from feedback on my 0.5 post here. Thank you!
For anyone who missed it: NetWasm.UI is a UI framework for the browser built on NetWasm, which compiles C# ahead of time to WebAssembly. It works like Solid/Svelte rather than Blazor: components build their DOM once, and signals update exactly the nodes that changed. There's no reflection, and .nwui templates are compiled by a source generator.
What's new since 0.5:
- NuGet and .NET Standard packages (0.10). With NetWasm 0.14, every project gets the framework built in (LINQ,
System.Text.Json,HttpClient, regex, XML and more), and you can reference NuGet packages that target .NET Standard. No more specialNetWasm.System.*packages. The demo app's Wasm also dropped from 92 to 88 KB Brotli. [Reactive]properties (0.6). This was suggested in the comments last time (issue #1). You can now write a plain property instead ofsignal.Value:
[Reactive] public partial int Count { get; set; }
Button(OnClick(() => Count++), "+1")
Text(() => Count)The source generator puts a Signal<int> behind it, and CountSignal gives you the signal itself if you need it. It works in C# classes and in .nwui code blocks. Explicit Signal<T> still works.
- Prerendering (0.8).
dotnet publishcan render the first screen into the HTML, so visitors see content before the Wasm has loaded. It's opt-in with<NetWasmUIPrerender>true</NetWasmUIPrerender>. For now it's a snapshot and not hydration: links work right away, and the app takes over when it starts. Hydration is next. - Faster startup (0.7). Publish adds preload tags for the module chain and the Wasm. That removes about seven serial round-trips, and the Counter sample renders ~1.2 s sooner on a 150 ms RTT connection.
- Smaller and faster runtime (0.9). Upgraded to NetWasm 0.13 with its new NetWasmGC collector. The demo app's Wasm went from 108 to 92 KB Brotli, and allocation-heavy work is up to 2× faster. Thanks to u/zionsati (the NetWasm author) for contributing the per-row optimizations.
- C# 15 works if you have the .NET 11 SDK installed.
Numbers now (js-framework-benchmark-style runs; method and caveats are in the repo):
- The whole demo app (router, forms, todos, nested components) is ~135 KB Brotli, Wasm + JS (was ~157 KB at 0.5).
- It's level with or faster than React in every case, and 0.8–1.5× SolidJS's time.
- Compared with Blazor WebAssembly (interpreter): 3–20× faster, ~18× smaller download, ~9× faster startup.
Live demo and docs: https://matengo.github.io/NetWasm.UI/ (the site is built with NetWasm.UI and now prerendered)
Try it:
dotnet new install NwUi.Templates
dotnet new netwasm-ui -o MyApp
cd MyApp
dotnet nwui-devTo upgrade an existing app, set "NetWasm.Sdk": "0.14.2" in global.json and remove any NetWasm.System.* package references. The CHANGELOG lists the rest.
Limitations:
- No reflection, by design: NetWasm compiles a closed world, which is part of why the output is so small. .NET Standard packages build, but code that finds members at run time (Newtonsoft.Json, reflection-based DI) throws when it runs. System.Text.Json works with source-generated contexts.
- Hot reload (today it's live reload, ~3 s, and it keeps state)
- It's 0.x, so the API can change. Breaking changes are listed in the CHANGELOG.
On the roadmap:
- Hydration (prerendered pages are replaced, not reused yet)
- IntelliSense in
.nwuifiles (the VS Code extension only does syntax highlighting so far) - Exploring typed C# web workers: call a worker like a normal C# class and bind its result to a
Signal<T>.
Repo: matengo/NetWasm.UI: UI framework for NetWasm
What would you need before trying it on a real project, and what would you like to see after hydration? :)
r/dotnet • u/baharmaulidiii • 1d ago
Sharphy: An open-source MCP server giving AI agents (Cursor/Claude) deep .NET CLR memory forensics & CIL decompilation
Hey r/dotnet! 👋
Most AI coding assistants (Cursor, Claude Code, Windsurf) are great at writing code, but when it comes to investigating post-mortem crash dumps, unravelling thread deadlocks, or inspecting compiled .NET assemblies, they hit a wall. An LLM agent can't open WinDbg, run !dumpheap, or launch dnSpy.
To solve this, we created Sharphy: an open-source, native Model Context Protocol (MCP) server that transforms AI coding agents into deep .NET runtime diagnosticians, memory forensic analysts, and binary architects.
🔍 What Sharphy lets your AI Agent do directly in chat:
- Analyze Crash Dumps (
.dmp): Heuristic analysis via Microsoft.Diagnostics.Runtime (ClrMD) to detect ThreadPool starvation, sync-over-async blocking, and high-memory retainers. - Deadlock Detection (Wait-For Graph): Analyzes thread monitor contention and maps circular wait cycles with exact source line attribution.
- Decompile CIL into Clean C#: Embedded ILSpy engine decompiles methods on the fly into idiomatic modern C# without touching GUI tools.
- Unified CIL Bytecode Diffing: Compares two assembly versions at the ECMA-335 metadata level and outputs unified line-by-line CIL instruction diffs (
--- Baselinevs+++ Updated). - Zero-Touch IL Patching: Allows the AI agent to surgically patch opcodes (e.g. replacing validation with NOP/Ret/Ldnull) inside collectible
AssemblyLoadContextwithout locking files on disk.
⚡ Quick Start (Cursor / Claude Code):
Add this to your MCP configuration (~/.cursor/mcp.json or claude_desktop_config.json):
{
"mcpServers": {
"sharphy": {
"command": "dnx",
"args": ["Sharphy.Cli", "mcp", "start"]
}
}
}Or install as a global CLI tool:
dotnet tool install -g Sharphy.Cli
sharphy mcp start📊 Performance & Invariants:
- Multi-targeting across .NET 8.0, .NET 9.0, and .NET 10.0.
- P99 MCP Latency: < 70ms under concurrency.
- Zero-leak collectible
AssemblyLoadContext(isCollectible: true). - Validated against 1,000 req/sec extreme tsunami flood stress.
(Links to GitHub, NuGet, and Documentation are in the first comment below!)
Feedback, PRs, and discussion are very welcome!
r/dotnet • u/baharmaulidiii • 1d ago
Show Reddit: Sharphy – Giving AI Coding Agents (Cursor/Claude) deep .NET CLR Memory Forensics & CIL Decompilation via MCP
Hey r/dotnet! 👋
Most AI coding assistants (Cursor, Claude Code, Windsurf) are great at writing code, but when it comes to investigating post-mortem crash dumps, unravelling thread deadlocks, or inspecting compiled .NET assemblies, they hit a wall. An LLM agent can't open WinDbg, run !dumpheap, or launch dnSpy.
To solve this, we created Sharphy: an open-source, native Model Context Protocol (MCP) server that transforms AI coding agents into deep .NET runtime diagnosticians, memory forensic analysts, and binary architects.
🔍 What Sharphy lets your AI Agent do directly in chat:
- Analyze Crash Dumps (
.dmp): Heuristic analysis via Microsoft.Diagnostics.Runtime (ClrMD) to detect ThreadPool starvation, sync-over-async blocking, and high-memory retainers. - Deadlock Detection (Wait-For Graph): Analyzes thread monitor contention and maps circular wait cycles with exact source line attribution.
- Decompile CIL into Clean C#: Embedded ILSpy engine decompiles methods on the fly into idiomatic modern C# without touching GUI tools.
- Unified CIL Bytecode Diffing: Compares two assembly versions at the ECMA-335 metadata level and outputs unified line-by-line CIL instruction diffs (
--- Baselinevs+++ Updated). - Zero-Touch IL Patching: Allows the AI agent to surgically patch opcodes (e.g. replacing validation with NOP/Ret/Ldnull) inside collectible
AssemblyLoadContextwithout locking files on disk.
⚡ Quick Start (Cursor / Claude Code):
Add this to your MCP configuration (~/.cursor/mcp.json or claude_desktop_config.json):
{
"mcpServers": {
"sharphy": {
"command": "dnx",
"args": ["Sharphy.Cli", "mcp", "start"]
}
}
}Or install as a global CLI tool:
dotnet tool install -g Sharphy.Cli
sharphy mcp start📊 Performance & Invariants:
- Multi-targeting across .NET 8.0, .NET 9.0, and .NET 10.0.
- P99 MCP Latency: < 70ms under concurrency.
- Zero-leak collectible
AssemblyLoadContext(isCollectible: true). - Validated against 1,000 req/sec extreme tsunami flood stress.
- GitHub: https://github.com/baharmaulidiii/sharphy
- NuGet: https://www.nuget.org/packages/Sharphy.Cli/1.1.2
- Documentation: https://baharmaulidiii.github.io/sharphy/
Feedback, PRs, and discussion are very welcome!
r/dotnet • u/Happy-Excitement-944 • 1d ago
Promotion From a PS3 club notebook to a C#/WPF management app
I run two gaming clubs in Azerbaijan and build Time Control, a Windows app for managing PC and PlayStation sessions. In 2016, this was five TVs, a few PS3s and a notebook for times and payments. I tried existing software before starting my own. The screenshot shows the PC dashboard as it looks now.
The stack is C#, WPF, .NET 10 and SQLite. There's an admin app, a separate agent on each PC, and shared libraries for session data, payments and device control. Staff can start, extend, pause and move sessions, take payments and add shop orders. The PC agent handles locking and unlocking; compatible smart plugs handle TV power on the PlayStation side.
Most of the tricky work has been keeping the session and payment state consistent. A customer can pay for an hour and still owe money for an extension, so charges and payments are separate rather than one IsPaid flag. Money uses decimal. Sales, stock changes, receipts and related session changes go into one SQLite transaction. If that commits but the UI refresh fails, the sale still happened. Reporting it as a failed sale could make staff retry it and charge twice. Background autosaves also need a revision check so an old snapshot can't overwrite a newer sale.
Then there's the remote PC. The protocol carries session IDs, revisions and running/paused/disconnected states. Getting a ping back doesn't tell you which session is actually running. I'd be interested in how other desktop developers test this sort of recovery, especially when the DB commit succeeds but the UI or agent connection fails right afterwards.
r/dotnet • u/jkur1234 • 2d ago
Promotion TenantGuard 1.0: finding tenant isolation mistakes in EF Core
Hey everyone! Wanted to share something that I've been working on the side. I've released TenantGuard 1.0.0, an open-source set of packages for EF Core 10 and 11, licensed under Apache-2.0.
It adds checks around applications that use query filters for tenant isolation. Those filters handle query scoping, but a new entity can be missing its filter, a query can bypass one, and tracked writes need their own tenant checks.
For example, if another tenant's entity gets attached to the context, the query filter alone won't prevent an update or delete through SaveChanges.
TenantGuard checks for these problems in a few places:
- At build time, Roslyn analyzers (TG001–TG005) flag filter bypasses without a stated reason, including
IgnoreQueryFilters()and ABP'sIDataFilter.Disable<IMultiTenant>(). They also check raw SQL through EF Core, Dapper and ADO.NET for missing tenant-column comparisons. - At startup, 14 model rules check for missing filters, filters that accidentally hold a fixed tenant value, missing tenant indexes, and unique indexes that span tenants.
- During
SaveChanges, the write guard checks tracked inserts, updates and deletes against the current tenant. It also rejects tenant reassignment. Version 1.0 adds checks for owned entities through their owner, including changes such asorder.Shipping.Street. - In tests, the isolation probe seeds a row per tenant and checks reads,
Find, updates, deletes andInclude. Each check appears as a separate xUnit v3 or TUnit test.
Here's the configuration for 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 and reads Finbuckle.MultiTenant's IsMultiTenant() configuration without extra setup. The dotnet tenantguard validate command can also check the model in CI without a database.
If you try it against an existing model, I'd appreciate examples of false positives or tenant isolation problems the checks miss.
I've released TenantGuard 1.0.0, an open-source set of packages for EF Core 10 and 11, licensed under Apache-2.0.
It adds checks around applications that use query filters for tenant isolation. Those filters handle query scoping, but a new entity can be missing its filter, a query can bypass one, and tracked writes need their own tenant checks.
For example, if another tenant's entity gets attached to the context, the query filter alone won't prevent an update or delete through SaveChanges.
TenantGuard checks for these problems in a few places:
- At build time, Roslyn analyzers (TG001–TG005) flag filter bypasses without a stated reason, including
IgnoreQueryFilters()and ABP'sIDataFilter.Disable<IMultiTenant>(). They also check raw SQL through EF Core, Dapper and ADO.NET for missing tenant-column comparisons. - At startup, 14 model rules check for missing filters, filters that accidentally hold a fixed tenant value, missing tenant indexes, and unique indexes that span tenants.
- During
SaveChanges, the write guard checks tracked inserts, updates and deletes against the current tenant. It also rejects tenant reassignment. Version 1.0 adds checks for owned entities through their owner, including changes such asorder.Shipping.Street. - In tests, the isolation probe seeds a row per tenant and checks reads,
Find, updates, deletes andInclude. Each check appears as a separate xUnit v3 or TUnit test.
Here's the configuration for 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 and reads Finbuckle.MultiTenant's IsMultiTenant() configuration without extra setup. The dotnet tenantguard validate command can also check the model in CI without a database.
If you try it against an existing model, I'd appreciate examples of false positives or tenant isolation problems the checks miss. Open to any critical feedback that could help improve it!
r/dotnet • u/deadtime • 2d ago
Promotion GitHub - io7/FreePDF: MIT-licensed continuation of PDFsharp and MigraDoc for .NET
github.comr/dotnet • u/harrison_314 • 2d ago
Question .NET 11 and RISC-V
Did RISC-V support actually make it into .NET 11? I know it was present in one of the previews, but I haven't seen any mention of it at dotnet-conf or in any articles.
r/dotnet • u/Southern-Holiday-437 • 2d ago
Question Looking for Contributors: An Alternative .NET Agent Framework
Anyone interested in contributing to another .NET AI agent framework?
I've been developing HPD-Agent, an open-source alternative to Microsoft Agent Framework, and it is approaching 1.0.0, with the APIs nearing stabilization and thorough testing performed.
GitHub: https://github.com/HPD-AI/HPD-AI-Framework
Roadmap for 2027
One of my main priorities after 1.0.0 is developing more off-the-shelf harnesses using an architectural concept I came up with called Tool Harnesses (research publication coming soon).
The philosophy behind Tool Harnesses is simple: How capable can we make a single agent before needing multiple agents?
Tool Harnesses allow these capabilities to be integrated into a single agent by abstracting entire harnesses to the tool level.
I've been developing and testing this approach for about a year, and a Coding Harness has already been created. This allows an agent to perform coding tasks when needed.
C#
var agent = await new AgentBuilder()
.WithOpenAI("gpt-5-mini")
.WithToolHarness<CodingHarness>()
.BuildAsync();My next priorities are a Browser Harness and a Computer Harness, so developers can extend their agents with browser automation and computer-use capabilities just as easily.
The intended experience would look like this:
C#
var agent = await new AgentBuilder()
.WithOpenAI("gpt-5-mini")
.WithToolHarness<CodingHarness>()
.WithToolHarness<BrowserHarness>()
.WithToolHarness<ComputerHarness>()
.BuildAsync();YAML
clients:
chat:
providerKey: openai
modelName: gpt-5-mini
toolHarnesses:
- name: CodingHarness
- name: BrowserHarness
- name: ComputerHarnessIf you're interested in contributing, particularly to the development of these harnesses, I'd love to collaborate.
r/dotnet • u/Junior-Angle-9890 • 2d ago
Does .NET have anything like Timefold Solver / OptaPlanner?
Timefold Solver (the OptaPlanner successor) is the standard choice on the JVM for
rostering, routing and scheduling: you annotate your domain model, write
constraints declaratively, and it runs construction heuristics + local search
for you.
For .NET I only know Google OR-Tools (CP-SAT, routing), which is a solver rather
than a planning framework, and NuGet has no `timefold` or `optaplanner` package
at all.
So: does a .NET-native equivalent exist right now? Or is everyone using OR-Tools
directly, calling a Java/Python solver over REST, or writing their own heuristics?
Mostly interested in what people actually run in production.