Skip to content

Feat/upgrade net9 #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Curtis-
Copy link

@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.
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.

1 participant