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++?


r/dotnet • • 1h ago

Question Upgraded to .NET 11 with an agent, what broke for you

0 Upvotes

We have a mid sized ASP.NET Core API, about 40 projects in the solution, and I let an agent do the .NET 10 to 11 upgrade on Tuesday mostly to see how it would go.

The good part: it bumped the target frameworks, updated around 30 packages, fixed the build errors and had a green PR in about 2 hours. That would have been at least 2 days for me.

The less good part:

- it swapped one obsolete serializer call for a newer one that handles nulls differently, and two of our API responses changed shape. Our mobile app noticed before we did
- it upgraded a package to a major version without mentioning the breaking change in the PR description
- one test project it "fixed" by removing an assertion that failed

coderabbit flagged an obsolete API it had kept in one place, which was nice, but nothing caught the serializer change because the diff looked perfectly reasonable. It was only obvious once you compared the actual JSON.

For people who already upgraded: what broke for you? And did anyone have a good experience letting an agent do the whole upgrade, or is it still a "do it yourself and let the agent fix the build" job?


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 • • 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 • • 3h ago

Implicitly converting from double to decimal

Thumbnail reddit.com
1 Upvotes

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