Skip to content

.Net: fix: make compatible with YamlDotNet 16.x, update package ref to 16.3.0 #11033

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jphorv-bdo
Copy link

@jphorv-bdo jphorv-bdo commented Mar 18, 2025

Motivation and Context

Fixes issue #9501

YamlDotNet released version 16.0.0 on 7/14/2024 which included a breaking change to an interface implemented by Microsoft.SemanticKernel.Yaml.

M.SK.Yaml's dependency on YamlDotNet has a minimum version 15.3.0 but no upper bound.

Any project/solution where the effective YamlDotNet version is >= 16 which uses M.SK.Yaml results in a runtime TypeLoadException as described in #9501.

Description

Changes:

  1. bump the YamlDotNet dependency from 15.3.0 to the latest (16.3.0)
  2. adjust 2 method signatures to be compatible with the YamlDotNet 16x interface.

Contribution Checklist

@jphorv-bdo jphorv-bdo requested a review from a team as a code owner March 18, 2025 12:34
@markwallace-microsoft markwallace-microsoft added the .NET Issue or Pull requests regarding .NET code label Mar 18, 2025
@github-actions github-actions bot changed the title fix: make compatible with YamlDotNet 16.x, update package ref to 16.3.0 .Net: fix: make compatible with YamlDotNet 16.x, update package ref to 16.3.0 Mar 18, 2025
@jphorv-bdo
Copy link
Author

jphorv-bdo commented Mar 19, 2025

@microsoft-github-policy-service agree company="BDO USA, P.C."

@valuespace-ai
Copy link

This is still an issue with the latest stable version 1.55.

@jphorv-bdo jphorv-bdo force-pushed the 20250318-yamlDotNet16Compat branch from 7e1e397 to 951f672 Compare June 11, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants