From: Eugen F <feu...@ya...> - 2014-04-02 13:07:03
|
I had same problem, but I added reference to "Newtonsoft.json" 4.5.0 assembly version/5.0.8 file version, the one that comes with Dnr 1.4 download instead of Nuget...as a temporary fix. I also tried getting specific version 4.5.0 from Nuget but it wasn't available. On Tuesday, April 1, 2014 10:48 PM, "mar...@ko..." <mar...@ko...> wrote: Hi Tom, Visual Studio offered to do what you suggested -- add bindingRedirect's -- which I accepted, but then at some point Visual Studio would no longer automatically copy the Newtonsoft.json dll to the output directory. I finally just ripped out all traces of the previous version of Newtonsoft.json from all my project files rather than try to fully debug the root causes. -Mark Mark D. Wood | Personalized Imaging R&D Kodak Alaris| 2400 Mt. Read Blvd. | Rochester, NY . Subject: Re: [dotNetRDF-Develop] dotNetRDF version number ________________________________ Hi Mark We also bumped into versioning problems with Newtonsoft.Json. We added a binding redirect to app.configs like below and there haven't been any problems. Is this what you have done too? <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime> Regards, Tom On Tue, Apr 1, 2014 at 2:45 PM, <mar...@ko...> wrote: That in fact is the issue. Thanks for shedding some light on the situation. I am using another NuGet-managed library that also has a dependency on Newtonsoft.json; when I updated that library recently, I believe it pulled the latest version of Newtonsoft.json, which appears to be what triggered this issue. I am now forcing dotNetRDF 1.0.4 to use Json 6.0.1 which seems to be working once I finished cajoling Visual Studio. NuGet lists the dotNetRDF dependency as simply >= 5.0.8 of Newtonsoft.json. I know almost nothing about NuGet mechanics, but taking a look at https://docs.nuget.org/docs/reference/versioningI wonder if you do need to constrain more tightly which version of Newtonsoft.json you are using? The way I read it, NuGet will update across major releases unless the dependency explicitly says not to? Thanks again, -mark Mark D. Wood | Personalized Imaging R&D Kodak Alaris| 2400 Mt. Read Blvd. | Rochester, NY . From: Tomasz Pluskiewicz <tom...@gm...> To: dotNetRDF Developer Discussion and Feature Request <dot...@li...> Date: 04/01/2014 11:05 AM From: Rob Vesse <rv...@do...> To: dotNetRDF Developer Discussion and Feature Request <dot...@li...> Date: 04/01/2014 04:36 AM Subject: Re: [dotNetRDF-Develop] dotNetRDF version number ________________________________ Mark Was NuGet trying to use Newtonsoft.Json 6.x by any chance? We’re currently still building against 5.x and haven’t upgraded yet because they appear to have changed what .Net profiles they are building for so upgrading isn’t a simple push button action for us and requires some build and packaging refactoring on our part. I had thought NuGet wasn’t supposed to grab different major releases though it is possible that if your code depends on the 6.x line of Netwtonsoft.Json this would cause dependency conflicts Rob From: <mar...@ko...> Reply-To: dotNetRDF Developer Discussion and Feature Request <dot...@li...> Date: Monday, 31 March 2014 18:59 To: dotNetRDF Developer Discussion and Feature Request <dot...@li...> Subject: Re: [dotNetRDF-Develop] dotNetRDF version number Thanks; sounds good. In updating to the latest version of the dotNetRDF library, NuGet gave me a hard time with the Newtonsoft.json dependency, requiring me to manually patch some things, and I noticed the discrepancy in the dotnetRDF dll version number. (Am I the only one running into problems w/ Newtonsoft.json? I had to fight to get NuGet/Visual Studio to go with the latest version of that particular library). -Mark Mark D. Wood | Personalized Imaging R&D Kodak Alaris| 2400 Mt. Read Blvd. | Rochester, NY . From: Rob Vesse <rv...@do...> To: dotNetRDF Developer Discussion and Feature Request <dot...@li...> Date: 03/31/2014 05:41 AM Subject: Re: [dotNetRDF-Develop] dotNetRDF version number ________________________________ No it is not, it was an oversight in the release process on my part. I’ll look at adding validation to our release process that ensures that this cannot happen in future. The code that is published is however the 1.0.4.3225 release. Note that there is not necessarily a requirement that the assembly versions correspond to the NuGet package versions though we usually try to ensure this. Rob From: <mar...@ko...> Reply-To: dotNetRDF Developer Discussion and Feature Request <dot...@li...> Date: Friday, 28 March 2014 22:07 To: <dot...@li...> Subject: [dotNetRDF-Develop] dotNetRDF version number Is it intentional that the dotNetRDF dll file/product version number is still at 1.0.3.0, even though we're at version 1.0.4.3225? -Mark Mark D. Wood | Personalized Imaging R&D Kodak Alaris| 2400 Mt. Read Blvd. | Rochester, NY . ------------------------------------------------------------------------------ _______________________________________________ dotNetRDF-develop mailing list dot...@li...https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop------------------------------------------------------------------------------ _______________________________________________ dotNetRDF-develop mailing list dot...@li... https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop ------------------------------------------------------------------------------ _______________________________________________ dotNetRDF-develop mailing list dot...@li...https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop------------------------------------------------------------------------------ _______________________________________________ dotNetRDF-develop mailing list dot...@li... https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop ------------------------------------------------------------------------------ _______________________________________________ dotNetRDF-develop mailing list dot...@li... https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop ------------------------------------------------------------------------------ _______________________________________________ dotNetRDF-develop mailing list dot...@li... https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop ------------------------------------------------------------------------------ _______________________________________________ dotNetRDF-develop mailing list dot...@li... https://lists.sourceforge.net/lists/listinfo/dotnetrdf-develop |