r/dotnet • • Apr 02 '26

Rule change feedback

16 Upvotes

Hi there /r/dotnet,

A couple of weeks ago, we made a change to how and when self-promotion posts are allowed on the sub.

Firstly, for everyone obeying the new rule - thanks!

Secondly, we're keen to hear how you're finding it - is it working, does it need to change, any other feeback, good or bad?

Thirdly, we're looking to alter the rule to allow the posts over the whole weekend (sorry, still NZT time). How do you all feel about that? Does the weekend work? Should it be over 2 days during the week?

We're keen to make sure we do what the community is after so feeback and suggestions are welcome!

621 votes, Apr 07 '26
77 I love the change
79 I like the change
57 I don't care
28 I dislike the change
16 I loathe the change
364 There was a change?

r/dotnet • • 9h ago

The death of Open Source in the NuGet eco-system

100 Upvotes

One by one, most of the major open source packages in NuGet are going the paid commercial license route. Its becoming harder and harder to write .NET software in a work setting as most of the crucial NuGet packages we used to depend on are becoming paid software. With the proliferation as part of our daily driver tool kit, justifying commercial license for NuGet packages to stakeholders is harder than it's ever been as they often think AI can write a free alternative (which, I mean, they're not completely wrong). I'm absolutely frustrated by the continuous bait and switch licensing that's been happening in the eco-system as well. Some developers have done a much better job than others in communicating and preparing for licensing changes, however some have absolutely trojan horsed us into some pretty difficult positions. I also resent the fact that .NET and NuGet don't give you better tools to manage, control, and protect yourself from installing packages with paid or specific licensing requirements.


r/dotnet • • 13h ago

An introduction to Compact Binary Object Representation (CBOR) in .NET

Thumbnail andrewlock.net
75 Upvotes

r/dotnet • • 17h ago

C# once again the fastest web framework

Post image
42 Upvotes

r/dotnet • • 19h ago

What’s new in C# 15: Overview

Thumbnail medium.com
48 Upvotes

r/dotnet • • 13h ago

Question NET MVC multilingual website: JSON vs RESX vs separate Razor views

7 Upvotes

Hey everyone,

I'm working on an existing asp.net mvc 5 app targeting .net framework 4.8, and now we're planning to add multilingual support

Currently, we have two website for the same product.

example.eu - the main english website, where most of the functionalities(if not all) live.

example.bg - the bulgarian website, mostly static that redirects users to the main site for actual functionalities.

Our goal is to find a way to make the experience of adding/supporting multiple langauges on the main site, starting with english and bulgarian, potentially later add german, romanian and others easy.

I have looked at few approaches but each has some drawbacks, that's why I am looking for more opinions.

First - JSON translation files(en.json, bg.json and so on)

The idea is to have the translation ekys and load the appropriate dictionary based on language ie example.eu/bg will load bg.json.

The main concern in the developer experience and later on editing of text. When working on a Razer view and thee a placeholder for text, I want to be able to quickly find the corresponing translation, ideally i.e I could press F12 in VS and navigate to that key, but I don't think that's possible.

Second - RESX

That seems to be the traditional .NET approach, and VS does provide some tooling for it however, I have used RESX before and personally found editing and maintaining them rather frustrating.

Third - Separate view for each langauge

For example:
Home/Index.en.cshtml
Home/Index.bg.cshtml
Home/Index.de.cshtml

This would make the translating complete pages straightforward, especially for marketing content. However, it would also mean maintaining multiple copies of the same view. Every layout, markup or functionality change would need to be repeated across all languages, making it easy to miss something.

I am not sure what is the cleanest implementation. Maybe there is a FOURTH option, or a combination of all(or two of them above)

So questions are below:

- What would you choose?

- Would you use RESX, JSON files, JSON(In db? but it could slow down the page loads), separate pages, a combinations or other?

- Is there a way to get that IDE navigation for the json translation option

I am especially interested in solutions that are maintainable long-term, dev-friendly and easy to extend.

I appreciate hearing from you who have implemented a real production app :)

Thanks


r/dotnet • • 9h ago

Ambiguous Reference "Errors"

Thumbnail
1 Upvotes

r/dotnet • • 11h ago

Question smart app control, is out of hand?

0 Upvotes

is this just me? recent changes to Smart app control?

I don't know if Microsoft recently changed something but doing agentic development on a pure .net solution where I have a slew of separate probes that are just validating my core application, they all get blocked, everyday it's a new one getting blocked, I'm getting around it somewhat by moving the probe to WSL, but why don't they have a white list or an ability to let developers temporarily disable this. and what's worse if you disable it entirely you basically can't re-enable it without some registry hack and crossing your fingers. as re-enabling it really isn't supported..

it's so bad that I'm considering just setting up a dedicated development VM in hyper-v Windows image where I can have all the controls turned off. or just pure Linux in hyper v

Am I the only one getting this? any other solutions? I do like it being on for normal operation..

Update, I think I found why, this coincides with the exact timing it started:

Processing img j2ju1z1leuwh1...


r/dotnet • • 12h ago

Question Is it justified to create an interface in this specific case ?

Thumbnail
0 Upvotes

r/dotnet • • 9h ago

Question API hosting help please!

0 Upvotes

Hi everyone, I'm in a bit of a bind. A colleague and I have been developing a project centered around a .NET 10 API. We're nearing completion, and I was preparing all the environments for deployment.

I had originally planned to host the API on an Azure B1 instance to start with, but when I went to set it up, it wouldn’t let me. My quota is maxed out, and support hasn’t been much help so far.

I’m going to wait a few more days, but if that doesn’t work out, I’d like to know what you recommend for hosting the API. Just the API; I have the database and image storage on Supabase and the front end on Cloudflare.

I’m a software developer and I’m not particularly comfortable with infrastructure. My plan was to go with Azure since I’m familiar with it, but now I’m torn between the alternatives. I’ve been looking into Railway, Koyeb, Render, etc., but I’ve seen mixed reviews for many of them.

Another option I’ve come across is renting a server from Hetzner and using Coolify, but that would require me to manage the server myself firewall settings and all and that’s a bit daunting.

Oh, by the way, we’re on a relatively tight budget and this is for a first version, and if it doesn’t go much over €20, that’d be great. And it would be ideal if it were hosted in the EU.

Sorry for the long post, any help would be greatly appreciated.

Thanks!


r/dotnet • • 22h ago

Browser Link Hot Reload fails with custom local domain

2 Upvotes

Since the September .NET SDK update, Browser Link no longer works for Hot Reload in Visual Studio 2026 Enterprise.

The injected Browser Link script returns a 403 error. The browser console indicates a cross-origin issue because Browser Link tries to connect to localhost:PORT while my application uses a custom local domain (myapplication.localhost). I have specific reasons for using this domain.

Hot Reload itself still works, but the browser no longer refreshes automatically after changes because Browser Link fails.

I found this article, which describes a similar issue and suggests setting DOTNET_WATCH_AUTO_RELOAD_WS_ORIGINS. However, that solution applies to dotnet watch. I use IIS Express for debugging, and the environment variable does not solve the problem.

Is there a way to configure Browser Link to work with a custom local domain when debugging with IIS Express?


r/dotnet • • 1d ago

PDFSharp went dual license. AGPL or commercial license

103 Upvotes

r/dotnet • • 10h ago

Is dotnet with mvc architecture worth in 2026 in India?

0 Upvotes

I am a fresher and recently joined a company and they use dotnet with mvc architecture so I am worried that I won’t be able to switch into a job with dotnet and angular or there isn’t growth in dotnet also if you’ve read this far tell me should I use blazor components?


r/dotnet • • 1d ago

How are you authenticating your agents' tool calls?

0 Upvotes

India's CERT-In put out a critical advisory last week (CIAD-2026-0049). Agents being evaluated by AI providers got into live systems at real companies using keys from config files, public repos and over-scoped cloud roles. None of the companies spotted it; they found out when the providers disclosed it.

It made me look at how agent code usually calls tools. The usual pattern is forwarding the signed-in user's access token to every tool. That works, but the API then can't tell a user from an agent, and the audit log blames the user for whatever the agent decides to do.

The alternative I'm leaning towards is a separate client per agent with narrow scopes and a short token lifetime, plus an authorization policy that rejects agent tokens on things like refunds and admin routes.

Is anyone doing token exchange (RFC 8693) in production for this, or is a separate client-credentials client the practical answer? Curious what's actually working in your setups.


r/dotnet • • 2d ago

Article Build Locally, Ship to Cloud: Azure SQL Database container (Preview)

Thumbnail devblogs.microsoft.com
33 Upvotes

I see occasional discussions around needing container support for Azure SQL Database and I'm happy to share that it is now currently in preview, if you're interested you can fill out the form @ https://aka.ms/azuresqldb-container-signup and u/vandana-mahtani-msft will get you onboarded.

Has really helped out a ton on several projects that I've been working on lately.

Of note, Microsoft Employee and active moderator of r/SQLServer and r/MSSQL (and a few other subs). Mods feel free to remove the post if needed, I sent a mail but had not heard back.


r/dotnet • • 1d ago

Question .NET Agent Framework feature request

0 Upvotes

When making AI agents what are things you wish the agent framework had to make ai harnesses easier and other features you feel they overlook?


r/dotnet • • 1d ago

WPF JetPack Theme (kind of like MahApps Metro)

2 Upvotes

I'm working on a packaged version of the good old 2010 Silverlight theme "JetPack".

I had Claude have a good look at how MahApps Metro is structured and had it construct a JetPack theme bundle along with documentation for it.

The old theme doesnt have any licensing, other than its publicly available from Microsoft. Claude has re-implemented everything from scratch, so it should be ok to simply release it under MIT license ? (im no expert) ... two file was copied from the Silverlight theme.

MahApps Metro is more or less a copy of the Cosmopolitan Silverlight theme as well 🤷‍♂️

Anyways - feedback is appreciated :)

Repo : https://github.com/Montago/JetPackTheme

Documentation : https://montago.github.io/JetPackTheme/


r/dotnet • • 3d ago

Promotion PeachPDF & Friends Updates

57 Upvotes

The last few months have been a whirlwind of updates, both from myself and from contributors worldwide.

What are some major highlights?

  1. PeachPDF is significantly faster and reduces memory allocations by up to 97% and rendering by many times on some documents. On a recent test run, it allocated less memory than typst on a random equivalent document corpus
  2. HTML, CSS, SVG, and now MathML support have seen updates to be more standards compliant. For the most part, we are competitive or ahead with PrinceXML (the standard bearer in this space in terms of standards support), and we are actually ahead of Chromium in many areas in the print-specific part of the CSS standards.
  3. Unicode support is significantly updated, with proper text shaping, line breaking, bidirectional language, and color emoji support (with color emojis remanining as vector art where possible!)
  4. PDF and related standards support, such as being PDF 2.0 by default, with support for PDF/A-4, PDF/X-6, and Factur-X / ZUGFeRD support. We also support older versions of PDF/A and PDF/X and the older PDF versions as well. We also support modern PDF encryption (and no, we won't enable using obsolete PDF encryption technologies)
  5. We've added rasterization of certain content where PDF cannot natively render as vector. This includes text hinting for any rasterized text.
  6. A contributor fixed CFF font subsetting so it doesn't embed the whole font anymore!
  7. We shipped a new declarative code first (QuestPDF-style) API for users who want to use it. You can mix and match them as well by embedding HTML and SVG into the declrative document.
  8. Color management, including CMYK and ICC profile support
  9. Better interactive form support
  10. All of this while being 100% pure managed .NET. We don't use any native libraries or dependencies. We do have .NET library dependencies that add up to under 15 MB, and it's all AOT and Trimmable friendly. We even ship an AOT compiled CLI, and we have known users that run on Android and iOS, and we even ship a Blazor WASM demo that works entirely in browser (https://peachpdf.net/demo/) **and** 100% open source (BSD 3-clause licensed!) **and** 100% free for everyone.

At this point, if you need to **create** a PDF document from .NET, no matter where your application runs, you can be sure of 2 things:

  1. It will work
  2. It will work well

If you have a document corpus it doesn't work well on, I'd love to hear about it so we can fix it.

As part of building PeachPDF, we also ship a handful of other open source libraries that some might find useful, that PeachPDF itself is based on. These are all MIT or BSD 3-clause licensed, so you can use them in commercial software at no cost, and they also don't depend on native libraries, and AOT and trim compatible themselves. I personally use these in other software I build, some commercial, not just in PeachPDF.

  • PeachImage, an image decoder/encoder that supports JPEG, JPEG XL, PNG, GIF, TIFF, WebP, and AVIF. It is optimized and uses modern .NET APIs to minimize allocations and increase performance through CPU optimizations via vectorization, targeting modern x64 and ARM processors. It also exposes APIs to resize images, some JPEG XL helpers to convert to/from JPEG losslessly, getting image orientation information and applying it, getting EXIF and ICC profiles in a cross-format way, getting animated image frames, and converting between different pixel formats. This was written from scratch against the specifications and license compatible native libraries, mostly with AI.
  • PeachDrawing.Text, a font and text engine. It supports TrueType, OpenType (glyf, CFF, and CFF2), WOFF, and WOFF2 fonts, font discovery, CSS Fonts 4 compatible font matching, color glyphs (both v10 and v1 with CPAL, SVG, and some bitmap formats), variable fonts, GPOS positioning, math fonts, font subsetting, UAX#14 line breaking including some CSS extensions, UAX#29 segmentation, UAX#9 bidirectional text, including CSS extensions, UAX#24 script support, UAX#50 vertifical orientation support, word breaking for Thai, Lao, Khmer, and Burmese, and TeX style hyphenation. It also supports text shaping, including for Arabic and other scripts, font hitting for rasterized text, matching FreeType, paragraph layout engine, both high level (for applications that just want to draw text) and low level (i.e., what's needed for HTML/CSS).
  • PeachDrawing.Core, drawing abstraction library that exposes a Canvas surface, RenderContext for fonts, colors, burhses, and pens, and various drawing data types. It also exposes high level features, such as geometry, layers and effects, tiles, text, anti-aliasing, and image sampling
  • PeachDrawing, a software rasterizing implementation of PeachDrawing.Core with a simple API and native PeachImage integration to save directly to an image.

Now some questions:

  1. Was AI used to create this library? Not originally, it was built over the last decade. AI didn't exist when I took the first step to creating PeachPDF
  2. Is AI used to maintain the library today? Yes, and why not? It's a perfect use case, it's implemented well known well documented standards, and AI can read those standards and ensure the support is top notch, with human direction. This doesn't mean it's "vibe coded" -- AI is used as a tool here.

When should you NOT use PeachPDF? If you need JavaScript, we don't support that. We may or may not add support for that in the future, but no one has really asked for it, and I haven't needed it, so there's that. There are plenty of good .NET HTML template libraries out there to use instead, and we now have the declarative API as well as an option. Also, if you need it to look EXACTLY like Chromium, that won't be the case. Chromium doesn't fully support the print media specifications of CSS, so there are huge gaps with its support that cause it to render differently. We do try to match its rendering where Chromium is correct and the standard allows differences.


r/dotnet • • 2d ago

Promotion I added a local video studio to TensorSharp using C#/.NET 10, ASP.NET Core, and MAUI

Enable HLS to view with audio, or disable this notification

11 Upvotes

Hi r/dotnet,

I maintain TensorSharp, an open-source .NET inference engine and agent runtime. I recently added Video Studio, which combines local AI video generation with a persistent timeline editor.

It runs in both the browser interface and TensorAgent, the .NET MAUI app. I thought the implementation might be interesting to people building desktop applications with .NET.

The implementation

The application has a shared C# core, TensorSharp.Studio, targeting .NET 10. It manages projects, media assets, timeline commands, editing history, persistence, and background jobs.

The browser and desktop hosts share the same HTML/JavaScript/CSS editor. The server exposes Studio through ASP.NET Core endpoints, while TensorAgent hosts it in a MAUI WebView connected to its local HTTP host.

Video generation uses TensorSharp’s existing inference pipeline and native compute backends. FFmpeg/ffprobe handle media inspection, timeline composition, and MP4 output.

One design choice is that manual editing and LLM-assisted editing use the same command system. Timeline operations become validated commands such as moveClip, trimClip, and updateClip. A tool-capable local chat model can propose those operations too.

The user reviews an assistant proposal before applying it. Proposals are checked against the project revision, and applying a proposal creates one undo step.

Rendering also captures a specific project revision. Users can continue editing while a render runs, and subsequent changes mark the previous preview as outdated. Generated footage stays in the asset library when its timeline insertion is undone, so reusing a take doesn’t require generating it again.

The attached demo

This runs locally on my MacBook Pro with an M5 Pro chip and 48GB of memory.

I import an image, animate it with LTX 2.5 Distilled, place the generated clip on the timeline, append a five-second still, and render the result.

  • Generated clip: 1024 × 1024, 145 frames at 24 fps, approximately 6.04 seconds, with audio enabled.
  • Generation time: 13 minutes 15 seconds on this machine.
  • Final composition: 11.04 seconds, combining the generated clip and the still.

The recording is sped up.

The editor also supports multiple video/audio tracks, trimming, splitting, rearranging, volume adjustments, fades, autosave, and undo/redo. Manual editing works without a model loaded.

A current limitation is that the host has one active model slot, so using the text assistant and generating video requires explicitly switching models.

Source: TensorSharp on GitHub
Architecture: Video Studio design
Setup and usage: Video Studio guide

If you’ve built desktop or media applications with .NET, I’d appreciate feedback on this shared C# core and MAUI/WebView approach, especially how you handle long-running native jobs while users continue editing.


r/dotnet • • 2d ago

Promotion MongoDB Tiny Client: A lightweight, portable MongoDB GUI for Windows built with .NET 8 WPF

0 Upvotes

Hi .NET developers!

I built MongoDB Tiny Client, a native Windows desktop client for MongoDB built completely with .NET 8 and WPF using the official MongoDB C# driver.

It is designed as an instant-startup, low-memory alternative to Electron-based tools like MongoDB Compass:

Key Highlights:

  • Instant startup & tiny footprint: Native WPF desktop application, starts in milliseconds with minimal RAM consumption.
  • 100% Portable: Single standalone executable, no installer or admin permissions needed.
  • Data Browser & Inline Editing: Tabular dynamic grid with in-place cell editing (F2), document duplication, insert, and delete.
  • Query & Aggregation Runner: Full server-side filter, sort, projection, and aggregation pipelines with BSON shell syntax support (ObjectId, ISODate, regex).
  • Import / Export: Supports JSON, NDJSON (JSON Lines), and CSV.
  • Security: Connections stored locally and encrypted with Windows DPAPI.

  • GitHub Repository: https://github.com/finalbyte1/MongoDBTinyClient

  • Releases / Download: https://github.com/finalbyte1/MongoDBTinyClient/releases/latest

Feedback, suggestions, and PRs are welcome!


r/dotnet • • 3d ago

Promotion Labcoat: a web UI for Microsoft.Testing.Platform / your Aspire dashboard

Thumbnail gallery
3 Upvotes

r/dotnet • • 2d ago

.NET to Python

0 Upvotes

We want to migrate application code from .NET frame to python , application is non banking finance.

Currently is on .NET Frame 4.6 version with Angular & JAVA.

Is this good approach? Migration from .NET to Python.

Also comment real struggle and challenges we can face during Migration and How much it will take time to Migrate using cursor AI.


r/dotnet • • 3d ago

C# supervisor so a foreground CLI survives close, crash, and reboot

3 Upvotes

Claude Code Remote Control (and similar remote workers) are a foreground process. Close the terminal, crash, sign out, or reboot and the remote client has nothing left to talk to.

The durable fix on Windows is not another terminal window. It is an OS restart policy: a Scheduled Task (or a service) that owns one long-lived process per session and starts again at boot. Linux is a systemd unit. macOS is a LaunchAgent.

I built that as LiveClaude, entirely in C# / .NET:

  • one process per session, product-native flags
  • Avalonia desktop app for create/edit, state, and logs
  • embedded real pty (ConPTY on Windows) plus a small VT emulator, so the one-time trust/login prompt is a terminal, not a scraped browser
  • Windows, Linux, macOS. MIT

It restarts the worker. It does not keep the same remote pairing URL, and it does not resume the conversation for you (claude --resume is still that step).

https://github.com/LeandroCannizzaro/LiveClaude

I'm the author. Happy to talk about the supervisor model or the VT bits.


r/dotnet • • 4d ago

Question How do pronounce nuget?

68 Upvotes

Do you say nugget, new-get or something else. I feel like this name falls into that same category as gif lol


r/dotnet • • 2d ago

Article The end of Stack Overflow as you know it

Thumbnail leaddev.com
0 Upvotes

Stack Overflow responds to AI disruption.