{
  "id": 4447089,
  "title": "This week in Cursor + .NET — 7 rules (week ending August 30, 2026)",
  "url": "https://urgent.news/2026/08/30/this-week-in-cursor-net-7-rules-week-ending-august-30-2026",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-30T14:52:16.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/agentic_architect/this-week-in-cursor-net-7-rules-week-ending-august-30-2026-3ono"
  },
  "original_language": "en",
  "account": null,
  "summary": "This week in Cursor + .NET, there are seven rules for senior C#/.NET engineers to follow. The first rule, Rule 9, warns about the risk of a Singleton holding a Scoped service, which can lead to a single most expensive .NET runtime bug. The second rule, Rule 8, emphasizes propagating CancellationToken in every async method to prevent the AI from losing cancellation half-way down a call chain. Rule 7 advises against using HttpClient() in generated code, instead forcing the use of IHttpClientFactory or a typed client to avoid socket-exhaustion bugs. Rule 6 suggests never hardcoding DateTime.Now or DateTime.UtcNow in business logic, instead injecting TimeProvider (or your own IClock) to make time deterministic for tests. Rule 5 encourages using MapGroup and EndPoints for .NET 9 services to keep the context window lean and focused. Rule 4 mandates adding FluentValidation rules to every MediatR Request to prevent context rot. Rule 3 requires enforcing ILogger with structured templates for better log debugging.",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}