kgrzybek / modular-monolith-with-ddd

Full Modular Monolith application with Domain-Driven Design approach.
MIT License
10.82k stars 1.7k forks source link

Remove Unused `using` Directives Following .NET 7/8 Update #293

Closed AlmarAubel closed 8 months ago

AlmarAubel commented 8 months ago

After upgrading our project to .NET 7/8, we've observed a significant number of unused using directives across our codebase. This occurrence primarily stems from the introduction of global using statements in the newer .NET versions, rendering many of the existing using statements redundant.

Proposed Solution To address this, I propose an automated cleanup of these unused using directives. Utilizing the code analysis and refactoring capabilities of Rider or Visual studio, we can efficiently identify and remove these redundancies. This action is expected to impact approximately 150 files.

Because of this impact it's maybe better if you (@kgrzybek) you remove it your self so you won't have to review all the changed files manually.

kgrzybek commented 8 months ago

Done, more than 600 files changed (Rider refactor).