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

[NET] Fix up PackageReferences to reflect our requirements #5230

Merged
merged 2 commits into from
Jan 6, 2021

Conversation

paulcam206
Copy link
Member

@paulcam206 paulcam206 commented Jan 5, 2021

Description

An issue came up in an email thread regarding package dependency versioning for .NET. The issue was expressed specifically about the HTML renderer, though the problem actually affects other renderers as well -- our Newtonsoft.Json requirements are inconsistent (11.0.2 for most pieces of our stack, and 12.0.3 for the templating library). The fix is to be more explicit about version ranges we allow. However, the templating library depends on AdaptiveExpressions, which itself depends on 12.0.3, so the only way for this all to work is to relax the NU1605 warning (package downgrade detected) for Newtonsoft.Json. Since I was already in here, I also moved us from fixed specific versions to wildcarded patch versions (aside from a range for Newtonsoft.Json).

It's probably worth noting that the original request was to move the full stack over to using Newtonsoft.Json >= 12.*, but we can't do that due to some clients requiring 11.x (see #3413).

How Verified

  • local build and unit tests
Microsoft Reviewers: Open in CodeFlow

@paulcam206 paulcam206 merged commit 794ea64 into main Jan 6, 2021
@paulcam206 paulcam206 deleted the paulcam/dotnet-deps branch January 6, 2021 00:02
@ghost ghost removed the AdaptiveCards v21.01 label Jan 6, 2021
@RebeccaAnne RebeccaAnne added this to the 21.01 milestone Feb 1, 2021
@ghost ghost added the AdaptiveCards v21.01 label Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants