Skip to content

Minor fixes to MEVD.Abstractions#7475

Open
roji wants to merge 1 commit intomainfrom
TransitiveWarning
Open

Minor fixes to MEVD.Abstractions#7475
roji wants to merge 1 commit intomainfrom
TransitiveWarning

Conversation

@roji
Copy link
Copy Markdown
Member

@roji roji commented Apr 18, 2026

  • Correct StorageName behavior when external serialization is enabled
  • Disable warning for net462
Microsoft Reviewers: Open in CodeFlow

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a mismatch in how StorageName is computed in Microsoft.Extensions.VectorData.Abstractions when a provider indicates it uses an external serializer, and updates packaging settings to avoid incorrect compatibility warnings for net462 consumers.

Changes:

  • Fix CollectionModelBuilder so UsesExternalSerializer=true correctly causes attribute-specified StorageName values to be ignored (by ensuring PropertyInfo is set before storage-name application).
  • Add unit tests covering StorageName behavior with UsesExternalSerializer enabled/disabled.
  • Disable minimum-supported-TFM compat warnings for this package to prevent incorrect net462 warnings.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/Libraries/Microsoft.Extensions.VectorData.Abstractions.Tests/CollectionModelBuilderTests.cs Adds regression tests validating StorageName behavior with/without UsesExternalSerializer.
src/Libraries/Microsoft.Extensions.VectorData.Abstractions/ProviderServices/CollectionModelBuilder.cs Moves PropertyInfo assignment earlier so storage-name logic can correctly ignore attribute/config when external serialization is used.
src/Libraries/Microsoft.Extensions.VectorData.Abstractions/Microsoft.Extensions.VectorData.Abstractions.csproj Disables minimum-supported-TFM compat errors to avoid incorrect net462 consumer warnings for this package.

@github-actions github-actions bot added area-ai Microsoft.Extensions.AI libraries and removed needs-area-label labels Apr 18, 2026
* Correct StorageName behavior when external serialization is enabled
* Disable warning for net462
@roji roji force-pushed the TransitiveWarning branch from e63bd75 to 31bb859 Compare April 18, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-ai Microsoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants