-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
error CS0104: 'Func<,>' is an ambiguous reference between 'Newtonsoft.Json.Serialization.Func<T, TResult>' and 'System.Func<T, TResult>' #2957
Comments
You're best off asking stuff like this on stackoverflow.com - this repo is for confirmed issues or feature requests; you'll get more eyes, and more responsive eyes over there When you do, best to mention commit ids, branches etc, and commands you're issuing etc. |
Generally I would agree... But this is very much confirmed and specific... From the .csproj NO .Net 8.0 From the global.json
Again not 8.0.205. I was at least hoping one of the people familiar with the repository [not with the NuGet package or using it] might point out a branch that I have missed or if there are any plans, considering that the recommendation is generally to use the native .NET supplied serialization moving forward [but it will be decades before all libraries that depend on this one are updated or replaced]. |
To prove you right... Quick answers that you'll get better detail on on SO:
So in summary:
None of this is specific to this project - it's general advice about what to expect from a repo that has very low maintainer time being invested at the present time. |
@bartelink - Well, not totally unmaintained - there was a commit onto master just a few hours ago.... Yes, it would be possible to add older SDK's and tools to my environment to build using other versions - but that is NOT what I am asking... There are lots of conditionals within the codebase so getting a .csproj file that has the "right things" defined for a .NET 8.0 environment without having any of the other configurations is very specific to this repository. In fact specific to https://github.com/JamesNK/Newtonsoft.Json/blob/master/Src/Newtonsoft.Json/Newtonsoft.Json.csproj. I still figure that if someone has gone through the work (maybe on a branch, maybe just local on one of their machines) they are more likely to be in the audience of people monitoring this repository, than all of the millions (potentially) of people who use and have questions about usage or functionality, not buildability. |
I stand corrected lol I guess it was worth a shot, but if you have a closer look at the PRs and issues (I watch this repo and have for quite some time), you might not have as pesimistic a view that someone would have invested the time. I'd either get myself the SDK ref'd in the global.json if I were you; failing that, a PR to update to latest would defintely be useful, as it will most likely be needed for a security patch etc in the near future. |
Any attempt to build gets over 100 errors of the above type.
The declarations are in LinqBridge.cs
I need a debug version so that I can track down a problem in another library that depends on Newtonsoft.Json so migrations etc, is not an option....
I am just trying to understand how this builds....
Trying to (ideally) target 8.0.205 -- using VS-2022
The text was updated successfully, but these errors were encountered: