Remove platform-specific builds - #4465
Merged
paulmedynski merged 8 commits intoJul 23, 2026
Merged
paulmedynski merged 8 commits into
paulmedynski merged 8 commits into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Contributor
|
@edwardneal - Thanks for progressing this work! It will lead to a much more simplified repo, build system, pipelines, and NuGet package layout. I will review this eagerly :) One ask though - can you benchmark before and after these changes? I'd like to see if there is any significant change we need to be aware of. |
edwardneal
commented
Jul 21, 2026
paulmedynski
requested changes
Jul 21, 2026
paulmedynski
left a comment
Contributor
There was a problem hiding this comment.
Love it! Just one comment/question.
Contributor
Author
|
Initial benchmarks are below. All benchmarks are connecting to a locally-run SQL Server 2025 instance on Windows, with no AppContext switches set. HeaderSummary
Connection open/close
Send strings
|
Contributor
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
paulmedynski
enabled auto-merge (squash)
July 22, 2026 19:14
This was referenced Sep 18, 2026
Open
Open
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.
Description
This follows up #4207, feeding the same pattern through the SNI layer and removing the logic which sets
_UNIXand_WINDOWS. By the end of this, we've got the SqlClient project building the same code for both Windows and non-Windows platforms, but without any changes to the structure of the NuGet package.We can't move commit-by-commit and see a compiling project, but I've worked upwards from the SNI layer.
cc @benrr101
Issues
Follows up #4207.
Part of #4239.
Testing
Tests continue to pass, and I've checked the output of an application which has been trimmed. All but two types are removed as expected on Linux,
OsConstantsis folded to a constant and the managed SNI is retained.With that being said, I'm running on Windows. I'd definitely appreciate a CI run to ensure that we've got a baseline of a working NuGet package on Linux in an untrimmed configuration.