Skip to content

Minor fixes to MEVD.Abstractions#7475

Merged
roji merged 1 commit intomainfrom
TransitiveWarning
Apr 22, 2026
Merged

Minor fixes to MEVD.Abstractions#7475
roji merged 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
@roji roji merged commit 7723587 into main Apr 22, 2026
6 checks passed
@roji roji deleted the TransitiveWarning branch April 22, 2026 18:57
jeffhandley pushed a commit that referenced this pull request May 5, 2026
* Correct StorageName behavior when external serialization is enabled
* Disable warning for net462

(cherry picked from commit 7723587)
This was referenced May 6, 2026
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.

3 participants