r/dotnet • • 3h ago

Question Is .NET still one of the most future-proof tech stacks?

34 Upvotes

With everything happening around .NET, C# and cloud-native development, the ecosystem keeps moving forward. If you were starting today, would you pick .NET again? Why or why not?


r/dotnet • • 2h ago

DotnetConf 2026 Recap

Post image
5 Upvotes

Hi everyone,

a few days ago, I created a page on my website with the entire recap and transcripts of all the DotnetConf 2026: https://www.emanuelebartolesi.com/events/dotnetconf2026

Let me know what you think about that, and follow me on GitHub: https://github.com/kasuken :)


r/dotnet • • 14h ago

Question Has anyone managed to run Crystal Reports (.rpt) on Linux / .NET Core without the Windows runtime?

29 Upvotes

I have a set of Crystal Reports that keep an app on Windows and .NET Framework. I'd like to run them in a Linux container: open the .rpt, give it data, get a PDF out.

What I've found so far:

  • The Crystal runtime is Windows and .NET Framework only.
  • The RAS SDK is also Windows-only, and it doesn't expose the whole report. Display String formulas are missing, cross-tabs are only partly there, and chart styling isn't there at all.
  • A couple of open-source .rpt readers that I tried didn't cope well with my reports.

So:

  1. Is there anything (paid is fine) that renders .rpt files on Linux?
  2. Has anyone got the real Crystal runtime working in a Linux container some other way, and did it hold up?
  3. Has anyone else tried writing their own reader or renderer? I've started one in .NET and it's handling my reports better than I expected, but I'd much rather use something proven than maintain my own. If nothing like that exists, would anyone be interested in testing it against their reports?

r/dotnet • • 5h ago

Article We wrote an A2UI 1.0 renderer for a C# front end the day after the spec shipped. Where it is strict

Post image
0 Upvotes

A2UI is Google's protocol for agent generated interfaces: the agent sends the interface as JSON, and the application draws it with its own components. Version 1.0 came out on November 11. Google publishes renderers for React, Angular, Lit, Flutter and SwiftUI. Our front end is C# compiled to JavaScript, so none of them fit, and we wrote one: Tesserae.A2UI.

What it covers: all 14 functions of the basic catalog, the validation checks and the protocol's error messages. Bindings are tracked per path, so a value is evaluated again only when data it read changes.

Where it refuses to turn text into markup:

  • Text is Markdown rendered with links and embedded content removed, so it cannot carry raw HTML or a script tag.
  • An icon drawn from SVG path data accepts only path commands and numbers. Any other character draws nothing.
  • Image, video and audio URLs must be http, https, data or on the same host.
  • openUrl opens only http and https addresses, and only from a person's click.

This does not make injected text harmless. It can still change what an interface says or which buttons it offers.

How it was made: a coding agent wrote it from the specification, kept beside the code, and one of us reviewed and merged it. The check is a gallery that draws all 43 examples from the A2UI repository, opened by a Playwright suite that fails on any console error.

Limits: it draws with Tesserae, our C# UI library, so it fits a C# front end and not a React app.

Source: https://github.com/curiosity-ai/tesserae-a2ui The write up, including how we use it in our product: https://blog.curiosity.ai/blog/2026-11-a2ui-agentic-ui-in-curiosity-studio

Disclosure: we build Curiosity Studio, and this renderer is the one behind its assistant interfaces. Happy to go deeper on any of this.


r/dotnet • • 1d ago

Question Windows Installer Implementation

7 Upvotes

I'm working on an installer for an enterprise application, and our customer has requested a rollback feature that allows downgrading to a previous version while restoring the corresponding version's user data (stored in a database and designated XML configuration files).

One approach we've considered is backing up the existing database and XML files before installation, uninstalling the current version, reinstalling the previous version, and restoring the data based on version matching from a designated backup directory.

However, this relies heavily on custom scripting. In particular, I'm concerned about the reliability and atomicity of moving and restoring backup folders, as these operations introduce additional points of failure.

Another limitation is that native MSI rollback only handles failures during installation; it doesn't provide rollback after a successful installation.

Are there more reliable /established approaches to implementing version downgrades/revert while preserving previous user data?


r/dotnet • • 1d ago

Newbie Struggling to use authentication and authorization in asp.net

36 Upvotes

Hi, recently started building an asp.net api to run on my vps.

It's meant to communicate between my apps and website. I watched some cybersecurity videos and read some principles to follow, like https://api-security.owasp.org/ .

I did manage to understand the concept and how to manage the tokens, but I just cant seem to understand how to implement authentication and authorization in the api.

Is there some basic tutorial that goes in depth about building an api with authentication and authorization in .net10?


r/dotnet • • 16h ago

Question Best way to verify that a request came from a legitimate application client?

0 Upvotes

The app doesn't use a log in service. When a user firsts downloads the app, he receives the app with a one time token file to be used when he enters the app's registration key. (each token file is different for each download).

After entering the key, and if token and key are valid, he receives the licence key file.

The app uses the licence file and a public key to verify access at a local stage on start up. The app then sends a request with the licence and device id to check if licence is still active, licence properties changes and if the request came from a registered device.

It also verifies every hour to check if it's still valid.

Is there a way to check that a request came from a legit app?

I was thinking of a couple of approaches, which don't really fix the problem.

  1. I could add a key in the app exe as a sort of token. But that would mean I won't be able to change it.
  2. Have a token in a file, and when it expires just change it. But then it could be easily copied like the licence file.
  3. Create a log in service and use access and refresh tokens. But that doesn't really solve the problem as I would first, either need to have the token hold the actual data of the licence or pass the data in the body for verification, and second, have to save the token locally.
  4. Have keys like whatsapp. When user registers the app with the key, the vps creates a set of keys. The vps holds the private key, binded to the registered device, and it sends back a public key. When client sends the licence data to the vps it sends a response signed with the private key binded to that device. If the client uses the public key to read the response. If it can't, deny access to the app. But that only prevents a compromised client from impersonating others.

Regarding number 4, I don't know though which one exactly should be the one holding the private key. And if this is my best approach.


r/dotnet • • 17h ago

Web Forms → MVC migration on a salary-packaging portal: what actually broke

0 Upvotes

We migrated a legacy ASP.NET Web Forms salary-packaging app to MVC last year. The interesting part wasn't the rewrite — it was everything that depended on Web Forms behaving like Web Forms.

Three things broke repeatedly:

1. ViewState was holding UI state. Multi-step forms looked stateless after migration because the old pages relied on ViewState for step data. Fix: explicit session-backed view models per step, plus a hidden step token.

2. Validation parity. Web Forms validators ran server-side on postback; MVC model binding silently accepted values the old app rejected. Fix: a validation parity checklist per page, with the same rules expressed as data annotations + a server-side guard.

3. Report parameters. The reporting screens passed DateTime values assuming server-local time. After the move, boundary dates shifted by a day for some records. Fix: store UTC, format at the edge, and add a regression check across month boundaries.

What made it manageable was a per-page parity checklist: fields, validation, state, queries, permissions — signed off before deleting the .aspx.

Happy to share the checklist format if useful.


r/dotnet • • 2d ago

Do you try to follow SOLID principles when coding?

45 Upvotes

Hello Guys !

So, everything is in the title.

I’m asking this because i think it is basic knowledge, but i saw too many developer that donc care about those concepts.

And everytime it gets me frustrated, cause it makes the work so much harder.

But i don’t know if i’m just the perfectionist who bother everyone or just someone who want to do is job properly.

Thanks !


r/dotnet • • 21h ago

Question C#/.NET Engineer Relevancy

Thumbnail reddit.com
0 Upvotes

r/dotnet • • 1d ago

Article In the 50 most popular C# repos, Copilot's coding agent merged PRs in 9 in November, down from 18 in March. The Copilot CLI or Claude Code: 30, up from 15

Post image
0 Upvotes

We follow AI-signed merged PRs (co-author trailers, bot author, agent branches) in the same 50 C# repos every month.

In November, Copilot's coding agent merged PRs in 9 of them, down from 18 in March. Its PRs fell to a quarter: 59, against 233 in March. In dotnet/runtime, 26 against 149. Agents people drive on their own machine went the other way: the Copilot CLI or Claude Code in 30 repos, up from 15, with 1,955 merged PRs. runtime, aspnetcore and maui use the CLI. Claude Code's count is mostly a few single-maintainer repos (SubtitleEdit, duplicati).

8 of the 50 had more than half their November PRs AI-signed. The median repo: 6%, against 0% a year ago. 13 of the 45 with 10+ merged PRs had none.

Limits: unsigned AI counts as none, and the Copilot CLI's trailer only shows up from February, so part of its rise is when it started signing. Every repo and a CSV: https://coderot.ai/blog/csharp-ai-november-2026?utm_source=reddit-dotnet-dec

Disclosure: we build coderot, which measures this in CI.

If your team moved from assigning issues to the coding agent to working with the CLI: what made you switch?


r/dotnet • • 1d ago

Promotion Shipping a .NET 10 WPF desktop app with zero NuGet packages: what it took

0 Upvotes

I've been building WinOrbit, a Dynamic Island and widget app for Windows, on WPF. Version 2.0 is on .NET 10 and still uses no NuGet packages. A few things that made that workable:

• All P/Invoke lives in one file, so every native call is easy to find and review.

• Windows change notifications instead of polling wherever Windows offers them, and work stops when nothing is on screen.

• Decision logic sits in small static functions with unit tests (about 490 of them), so the UI code stays thin.

• The glass effects are WPF ShaderEffects (HLSL ps_3_0, with a ps_2_0 fallback).

Source: https://github.com/Mahadi-Siraj/WinOrbit

1-minute demo: https://youtube.com/shorts/vw55eK8Is8I

Is anyone else still starting new WPF apps on modern .NET? Curious what you'd do differently.


r/dotnet • • 2d ago

I built a NativeAOT C# YouTube Innertube library that shrinks API payloads by 99.7% (5 MB → 2 KB) — plus a WinUI 3 client with a 14 MB uncompressed binary powered by it

4 Upvotes

Most C# libraries for YouTube metadata either rely heavily on runtime reflection (breaking NativeAOT) or download massive, multi-megabyte JSON blobs from YouTube's Innertube endpoints just to read a video title or playlist.

Over the past couple of weeks, I built TubeSharp — a zero-dependency, NativeAOT-compatible C# library using System.Text.Json source generation and Innertube field filtering to request only the exact JSON fields needed:

  • Playlist metadata (/browse): ~5 MB → ~2 KB (99.96% reduction)
  • Video metadata (/next): ~1.2 MB → 2.77 KB (99.77% reduction)
  • Search (/search): ~2.61 MB → 47 KB (98.2% reduction)
  • Package size: 99 KB with zero third-party dependencies (~500 downloads on NuGet in its first 9 days!)

Real-World NativeAOT Showcase: Nativefy

To push NativeAOT + WinUI 3 as far as possible, I built Nativefy, a serverless desktop YouTube client for Windows powered by TubeSharp:

  • 14 MB uncompressed app binary (~10 MB compressed inside the 33 MB .msix, which also bundles the 23 MB yt-dlp binary for offline downloads)
  • Down from 100+ MB: By default, the Windows App SDK MSIX packager leaks dozens of redundant JIT .dll, .pdb, and .json files into AppxPackagePayload even with <PublishAot>true</PublishAot>. Hooking into _GenerateAppxPackageRecipe to strip those leaked JIT files cut the uncompressed footprint by over 85%.
  • ~60 MB idle RAM and 80–120 MB during active playback across all resolutions

Links:

Would love feedback on the API design, AOT setup, or any edge cases you spot!


r/dotnet • • 3d ago

Grateful for the new C# 15 Union Types!

Post image
320 Upvotes

C# is getting better every release


r/dotnet • • 3d ago

Article .NET 10 vs .NET 11 Minimal APIs on PostgreSQL: plain Npgsql vs Dapper vs EF Core (44 load tests, open data)

Thumbnail npgsqlrest.github.io
90 Upvotes

r/dotnet • • 1d ago

Rant: MS still needs something roughly comparable to MS-Access for "departmental" apps

0 Upvotes

Developers used to use MS-Access to make relatively complex apps for smaller internal work-groups having fairly complex domain logic but don't require high transaction volume. While the out-of-box MS-Access defaults can indeed result in amateur programmers making a mess, better devs kept apps simple and clean.

Development could often be done by a single dev and require only about 1/3 of the effort and 1/3 the code of typical Dot-Net stacks. Seen it many times. Dot-Net stacks are typically overly complex for those kinds of projects. (I realize highly experienced Dot-Net devs can work fast, but the result is still less maintainable than domain-fitting tools/languages. The result is frankly bloated and dependent on DRY-hating scaffolders.)

MS suggests Power Platform to replace it, but PP is just not flexible enough, has messy licensing, and custom programming for it is not trivial. I'd like to see MS promote an open-source equivalent to "web Access". [edited]

I realize such a tool can't grow to "web scale" or whatnot, but 99% of time it doesn't need to. Dedicated high-volume or external apps/services can be made to talk to the database if needed for specific tasks such that the RAD tool doesn't need to carry every load. YAGNI should apply to tools also, else you get Swiss Army Rocket Surgery tools. Note that MS-Access was not best of breed per programmable RAD in my opinion. Paradox and Power Builder were better designs, or at least hinted at better designs.

MS is no longer scratching a common itch: a need for work-group apps.


r/dotnet • • 2d ago

Promotion HanumanInstitute.MvvmDialogs v3.0-beta1 Released!

Thumbnail github.com
2 Upvotes

Just released v3-beta1 of HanumanInstitute.MvvmDialogs with WinUI, Uno and MAUI support on top of Avalonia and WPF. For Desktop, Mobile and Browser.

It allows having a clean boundary between UI concerns and logic concerns. This firewall separation is particularly important in the era of agentic coding to avoid code creep and spaghetti code.

For single-page platforms, it handles navigation between pages and dialogs, including back navigation.

v3 even adds support for easy document tabs and panels handled via MVVM.

Check it out!

It requires extensive testing. Open a ticket if you find any issue.

My next goal: Godot support for game development.


r/dotnet • • 2d ago

Article Porting SqlQueryStress from WPF to Avalonia

Thumbnail hermeschigoziri.com.ng
2 Upvotes

r/dotnet • • 2d ago

what do you think of polyglot using dotnet

0 Upvotes

hello, so I'm a polyglot developer I used to think dotnet and particularly c# can be used for everything ( I still think it can) but I think it is not efficient dx wise so I learned other language and discovery the package manger and all third party libraries.

there's multiple way of doing polyglot and there's some limitation or caveats depending on the project goal and targeted platform. However I'm also minimalist too I don't want to do bloated runtimes embedded in all platforms I thought wasm gonna resolve all my problem but it didn't .

I'm not picking a polyglot framework or weird unpredictable runtime glues . but I want to do quick prettying, I think unity and fuseopen is the best way currently. but recently I only care about desktop not cloud or mobile. there when I discovered mise place in . and honestly it's much better than using dotnet experimental interop or weird transpilers,

I want to develop a platform not an app, while performance and security is a bottleneck here, I think it everything has pros and cons and things can be resolved and automated later.

so I'm currently building monolithic platform with insight and lesson learned from Microsoft interactive notebook / polyglot kernels I tried before.

IPC, gRPC and other techniques is considered but I don't want to be limited not sure if what I'm doing is useful atm anyway but I think there's use cases at least for me . do you guys think interop or docker should be the defacto way , how about local file based scripting ?

what I'm building ? a monolithic platform developed locally but it should be also able to be portable in .net desktops and scalable to the cloud or web hosting platforms but include cli tools for automation , the platform should enable design , change and execute workflow that may requires cli .

( haven't considered or used durable neither Distroless docker images https://github.com/GoogleContainerTools/distroless ) I understand these are for different pruposes but the users should be able to publish their workflow or services made by this project anywhere .

any advice or feedback is appreciated


r/dotnet • • 3d ago

Promotion Would you use a Visual Studio wizard to set up OAuth sign-in for an ASP.NET Core app?

Thumbnail gallery
5 Upvotes

I’ve been trying this out on one of my own ASP.NET Core projects. Screenshots attached. Would it have saved you time the last time you set up OAuth, or would you stick with your current approach?


r/dotnet • • 2d ago

Ich arbeite an meine neue Version Meiner Website

Post image
0 Upvotes

Ich will unbedingt meine alte Framer Website durch eine komplett neue Programmierte erstetzen ! Das Endergebnis wird Safe geil werden. Ich liebe Coden !


r/dotnet • • 2d ago

Promotion Wpf-Smoke v0.2.0: Compare startups before and after a .Net 8 Migration

Thumbnail nuget.org
0 Upvotes

This came out of some work that i was having agents migrate from an older .net migration i noticed that they would build just fine and fail during startup. Usually what would break it was a buried exception or some binding error. Wpf-smoke aims to fix that by starting the app and watching startup and returning one json result . To pass the build the build has to succeed and the wpf window has to be visible and loaded without any unhandled exceptions or binding errors. Would really love some feedback if you have the time to try it out.