Skip to content

Conversation

@Curtis-
Copy link
Contributor

@Curtis- Curtis- commented Apr 21, 2025

Upgrade solution to .NET 9 and modernize project structure

  • Migrated projects from .NET Framework 4.8 to .NET 9.
  • Converted legacy .csproj files to SDK-style project format.
  • Removed obsolete App.config and AssemblyInfo.cs files.
  • Updated NuGet dependencies to compatible versions:
    • dbup-sqlserver upgraded to version 6.0.0.
    • Microsoft.SqlServer.SqlManagementObjects upgraded to version 172.64.0.
  • Refactored namespaces to use modern file-scoped declarations.
  • Applied C# 10 features such as global usings and nullable reference types.
  • Enhanced database scripting logic for improved maintainability and performance.
  • Removed redundant configuration files (packages.config).
  • Updated solution file for compatibility with Visual Studio 2022.
    This commit modernizes the solution, aligns it with the latest .NET standards, and improves maintainability.

Curtis- added 2 commits April 21, 2025 12:53
Upgrade solution to .NET 9 and modernize project structure
- Migrated projects from .NET Framework 4.8 to .NET 9.
- Converted legacy `.csproj` files to SDK-style project format.
- Removed obsolete `App.config` and `AssemblyInfo.cs` files.
- Updated NuGet dependencies to compatible versions:
  - `dbup-sqlserver` upgraded to version 6.0.0.
  - `Microsoft.SqlServer.SqlManagementObjects` upgraded to version 172.64.0.
- Refactored namespaces to use modern `file-scoped` declarations.
- Applied C# 10 features such as `global usings` and `nullable reference types`.
- Enhanced database scripting logic for improved maintainability and performance.
- Removed redundant configuration files (`packages.config`).
- Updated solution file for compatibility with Visual Studio 2022.
This commit modernizes the solution, aligns it with the latest .NET standards, and improves maintainability.
- Replaced deprecated `WriteInformation`, `WriteWarning`, and `WriteError` logging methods with modern `LogInformation`, `LogWarning`, and `LogError` methods for consistency and clarity.
- Updated `DatabaseUpgradeResult` initialization to include additional parameters for improved error handling and extensibility.
- Replaced `Enumerable.Empty<T>()` with `[]` for cleaner and more concise code.
- Enhanced logging messages to provide better context during database scripting operations.
- Improved maintainability and readability of the `DbObjectScripter` and `ScriptingUpgrader` classes.
This commit modernizes the logging approach and enhances the database scripting logic for better maintainability and debugging.
@bradymholt
Copy link
Owner

Wow - this is great. Thanks @curtis!

@bradymholt bradymholt merged commit 1aa1c75 into bradymholt:master May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants