r/dotnet • • 7h ago

Aspire 17 is out

38 Upvotes

Yes they bumped a few major versions for whatever reason. Includes some breaking changes: https://aspire.dev/whats-new/aspire-17/#-upgrade-to-aspire-170

> Aspire 17.0 puts your resources at the center of a redesigned dashboard, with a resource table home page, a dedicated Terminals page, and graph export to Mermaid. Go AppHosts are in preview, a tray companion keeps running AppHosts within reach, and the Kubernetes deployment packages are stable. Many APIs that previously required an experimental-warning suppression are now stable, too.


r/dotnet • • 8h ago

Question Best way to switch between local ProjectReference for debugging and NuGet PackageReference for Git?

8 Upvotes

My main project depends on two of my own packages hosted on NuGet. The projects for these packages are not included in the solution, and they are referenced via PackageReference in the .csproj file—which is how it's committed to Git.

Currently, to debug the main project alongside the latest local versions of these packages, I removed them from PackageReference, added their projects to the solution, and switched them to ProjectReference in the .csproj. However, this is strictly a debug configuration. Before pushing to Git, I need the version that uses PackageReference without the package projects included in the solution.

What is a convenient way to set this up so I don't have to manually modify the solution and .csproj files before debugging and then revert them every time?


r/dotnet • • 3h ago

Aspire 17 is ready for primetime!

Thumbnail reddit.com
6 Upvotes

r/dotnet • • 13h ago

Multi-tenant SaaS with EF Core global query filters — how do you protect against someone calling IgnoreQueryFilters()?

2 Upvotes

I’m using a TenantId column plus a global query filter to isolate tenants in a multi-tenant ASP.NET Core app on PostgreSQL. It works well, but one IgnoreQueryFilters() or a raw SQL query could leak data across tenants.

What do you do about this in production?

  • Architecture tests that ban IgnoreQueryFilters outside certain folders?
  • PostgreSQL Row-Level Security as a second layer?
  • Something else?

Curious how teams handle defense-in-depth here.


r/dotnet • • 3h ago

Implicitly converting from double to decimal

Thumbnail reddit.com
1 Upvotes

r/dotnet • • 18h ago

Question How to do auto source generation in unity?

1 Upvotes

Hi I'm trying to port some python libraries in .net using csnake but it requires source generation ..

Now unity support latets .net as experiment and to some extent source generators but I'm not sure exactly how to do that a PoC would be perfect for it .


r/dotnet • • 6h ago

Question is C# a good language to use for making a game engine?

0 Upvotes

so I have a from what i find a intermediate amount of knowledge on C# and have made some games in unity. now i want start a big project that could really make me a better programmer and after some researching i would like to maybe start making my own game engine. would this be a good idea? or is there another big project that maybe could be better suited? i know it could take longer than a year to build and that i need to learn a lot about low level programing but i think it could be really fun. or should i do the project in C++?