AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

[.Net] Newtonsoft.Json 13.0.1 (latest) version explicitly not supported

Open 951p opened this issue 5 years ago • 10 comments

Platform

What platform is your issue or question related to? (Delete other platforms).

  • [X] .NET HTML

Author or host

Developer

Version of SDK

What version are you using? NuGet 1.2.1 -- (latest)

Details

Latest nuget doesn't support (explicitly prevents) Newtonsoft.Json 13.0.1 (latest) version image

951p avatar Mar 24 '21 11:03 951p

thanks @951p - we'll take a look :)

paulcam206 avatar Mar 24 '21 16:03 paulcam206

Which is plan for this? it is really a problem because it prevents to use the programmatically approach to write cards in lot of new projects. Why was the #5671 closed that is maybe more general than this? Thank you!

andrekiba avatar May 17 '21 14:05 andrekiba

up

andrekiba avatar May 18 '21 04:05 andrekiba

This is forcing package downgrades on other projects for me, I imagine many others will have similar problems -- would be great if it could be addressed soon.

ig-jb avatar Jun 02 '21 09:06 ig-jb

I believe this bug should be reopened given that the fix was reverted.

Edit: the fix was never reverted, I was mistaken, see my other comment down below

AlexandreArpin avatar Jun 15 '21 12:06 AlexandreArpin

This is forcing package downgrades on other projects for me, I imagine many others will have similar problems -- would be great if it could be addressed soon.

It's definitely a problem, a growing problem. Simply changing the Newtonsoft.Json version dependency to 13.0.1 on my local versions .nuspec fixed the issue and it seemed to work fine. But perhaps there are unseen side effects.

brittonModuleQ avatar Jun 16 '21 20:06 brittonModuleQ

Why does AdaptiveCards even have a dependency on Newtonsoft.Json? If you're going to implement serialization then it should be in its own package, like how NodaTime has NodaTime.Serialization.JsonNet. That way you can also switch to System.Text.Json, which I'm surprised hasn't happened yet,

austinw-fineart avatar Jun 17 '21 02:06 austinw-fineart

A PR to revert the issue was opened, but it was never merged.

I am sorry for the confusion my comment caused.

As far as I know, the next version of AdaptiveCards will have unpinned versions.

AlexandreArpin avatar Jun 18 '21 13:06 AlexandreArpin

Hi @paulcam206 , can you confirm this will be addressed in the next version? Much appreciated.

brittonModuleQ avatar Jun 18 '21 16:06 brittonModuleQ

This issue should be fixed in the latest .NET release

jonmill avatar Sep 03 '21 16:09 jonmill