Migrate to .NET 10 and modernize codebase#4
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates Shape2SqlServer from .NET Framework 4.8 to .NET 10 (Windows-only), modernizes the project structure, and enhances the SQL Server connection experience with a custom dialog and SSL certificate configuration.
Key Changes
Project Modernization
net10.0andnet10.0-windowsNuGet Package Updates
All packages updated to .NET 10 compatible versions:
Custom Connection Dialog
Replaced deprecated
Microsoft.Data.ConnectionUI(no .NET Core/10 equivalent) with custom frmConnectionDialog:SSL Certificate Trust Feature
Settings Persistence
Connection dialog settings are now persisted between sessions:
sqlServer- Server name/instancesqlDatabase- Database namesqlUseWindowsAuth- Authentication type preferencesqlUsername- SQL Server username (password excluded for security)sqlTrustServerCertificate- SSL certificate trust settingCode Migration Changes
Namespace updates:
GeoAPI.*withNetTopologySuite.GeometriesSystem.Data.SqlClienttoMicrosoft.Data.SqlClientthroughoutAPI changes:
CoordinateSystemWktReader.Parse()→CoordinateSystemFactory().CreateFromWkt()IGeometry→Geometry,ICoordinateSystem→CoordinateSystemMsSql2008GeographyWriter/GeometryWriter→SqlServerBytesWriterwithSqlGeography/SqlGeometry.Deserialize()OperationAbortedException→SqlExceptionNative assembly loading:
Breaking Changes
net10.0-windowsdue to Windows Forms dependencyTesting Completed
✅ Solution builds successfully
✅ Custom connection dialog displays and functions correctly
✅ Connection string builder includes TrustServerCertificate option
✅ Settings persistence working
✅ Spatial library APIs functioning correctly
Files Changed
🤖 Generated with Claude Code