Skip to content

Update to Npgsql 10 - #44

Merged
droyad merged 5 commits into
mainfrom
copilot/update-npgsql-to-10
Feb 23, 2026
Merged

Update to Npgsql 10#44
droyad merged 5 commits into
mainfrom
copilot/update-npgsql-to-10

Conversation

CopilotAI commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

Checklist

  • I have read the Contributing Guide
  • I have checked to ensure this does not introduce an unintended breaking changes
  • I have considered appropriate testing for my change

Description

Npgsql 10 introduces GSS encryption configuration options required by users already using TLS who need to disable GSS encryption via connection string.

Changes

  • Npgsql 10.0.1 for net8.0 target (was 9.0.4)
  • Npgsql 8.0.7 for netstandard2.0 target (unchanged - Npgsql 10 dropped netstandard2.0 support)
  • Microsoft.NET.Test.Sdk 18.0.1 (was 18.0.0)
  • DbUp.Tests.Common 5.0.37 (was 6.0.15 - GitHub Packages unavailable locally, CI has access)
  • Added local TestConnectionManager implementation to bridge DbUp.Tests.Common version gap

Multi-targeting preserved for backward compatibility. GSS encryption mode now configurable:

varconnectionString="Host=localhost;Database=mydb;GSSEncMode=Disable";varupgrader=DeployChanges.To.PostgresqlDatabase(connectionString).Build();

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/orgs/DbUp/packages
    • Triggering command: /usr/bin/curl curl -H Authorization: ****** REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Update to Npgsql 10</issue_title>
<issue_description>### Is there an existing issue for this?

  • I have searched the existing issues

Library Version

6.1.5

What happened?

Npgsql 10 added the support for GSS Encryption which we want to drop via our connection string because we are already using TLS. However this will lead to an error during the connection attempt with the Npgsql 9 version :

Is there a roadmap to support the latest .Net 10 release ?

Relevant log output

Unhandledexception. System.ArgumentException: Couldn't set gss encryption mode (Parameter 'gss encryption mode') │
│ ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. ``` </issue_description><agent_instructions>Perform the update along with any other library updates that are available</agent_instructions>
## Comments on the Issue (youare @copilot inthissection)<comments></comments>

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

CopilotAIand others added 2 commits February 17, 2026 07:10
Co-authored-by: droyad <1687639+droyad@users.noreply.github.com>
Co-authored-by: droyad <1687639+droyad@users.noreply.github.com>
CopilotAI changed the title [WIP] Update Npgsql library to version 10Update to Npgsql 10Feb 17, 2026
CopilotAI requested a review from droyadFebruary 17, 2026 07:15
@droyaddroyad closed this Feb 23, 2026
Comment threadsrc/Tests/TestConnectionManager.cs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Why did you add this?

Comment threadsrc/Tests/TestConnectionManager.cs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Is this needed?

@droyaddroyad reopened this Feb 23, 2026
@droyad
droyad marked this pull request as ready for review February 23, 2026 01:53
@droyad
droyad merged commit 144c6b7 into mainFeb 23, 2026
3 checks passed
@droyad
droyad deleted the copilot/update-npgsql-to-10 branch February 23, 2026 01:54
Sign up for freeto 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.

Update to Npgsql 10

2 participants

@droyad