Skip to content
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

Compatibility with .NET 9 #46

Open
irvanherz opened this issue Jan 17, 2025 · 3 comments
Open

Compatibility with .NET 9 #46

irvanherz opened this issue Jan 17, 2025 · 3 comments

Comments

@irvanherz
Copy link

The current version of pgvector-dotnet does not support the latest .NET 9. When attempting to use the package with .NET 9, compatibility issues arise, potentially due to outdated dependencies or features that need updating to align with .NET 9.

Expected Behavior:
The library should work seamlessly with .NET 9, leveraging its features and compatibility improvements.

Steps to Reproduce:
Create a new .NET 9 project.
Add the pgvector-dotnet package.
Attempt to use the library (e.g., interact with pgvector functionalities).

Environment Details:
.NET Version: 9
Entity Framework Version: 9+
Pgvector Version: 0.3.0
Pgvector.EntityFrameworkCore: 0.2.1

Additional Notes:
Please provide an update or timeline for .NET 9 compatibility.

@roji
Copy link
Contributor

roji commented Jan 17, 2025

What exact issues are you seeing? You haven't actually posted any error message or problematic behavior. .NET is generally fully backwards compatible, so a new version of .NET should always be able to run existing libraries without them getting updated etc.

@piotreksda
Copy link

Hi, there is problem with ef 9 support

System.TypeInitializationException: The type initializer for 'Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping.NpgsqlBigIntegerTypeMapping' threw an exception.
---> System.TypeLoadException: Method 'get_ConstructorExpression' in type 'JsonBigIntegerReaderWriter' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=8.0.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.

@roji
Copy link
Contributor

roji commented Jan 22, 2025

Please post your full csproj - that error is probably a result of mixing EFCore.PG and Npgsql major versions, and probably has nothing to do with pgvector.

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

No branches or pull requests

3 participants