You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Markus Weimer (JIRA)" <ji...@apache.org> on 2016/04/11 23:00:27 UTC

[jira] [Commented] (REEF-1332) Resolve version conflicts with NewtonSoft JSON

    [ https://issues.apache.org/jira/browse/REEF-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15235969#comment-15235969 ] 

Markus Weimer commented on REEF-1332:
-------------------------------------

OK. I followed the [instructions here|https://msdn.microsoft.com/en-us/library/2fc472t2%28v=vs.110%29.aspx] to fix the warning for the C++ code. There were some other instances of a similar warning, and I fixed them by referencing {{lang/cs/App.Config}}. Namely, those projects were: {{Org.Apache.REEF.Client}}, {{Org.Apache.REEF.Driver}}, {{Org.Apache.REEF.Examples.AllHandlers}} and {{Org.Apache.REEF.Tang.Tools}}. With those changes in place, the only warnings the build generates are from our own deprecations. Will file a PR next.

> Resolve version conflicts with NewtonSoft JSON
> ----------------------------------------------
>
>                 Key: REEF-1332
>                 URL: https://issues.apache.org/jira/browse/REEF-1332
>             Project: REEF
>          Issue Type: Bug
>            Reporter: Markus Weimer
>            Assignee: Markus Weimer
>            Priority: Minor
>
> REEF.NET currently produces multiple instances of the following warning during the build:
> {code}
> ResolveAssemblyReferences:
>   No way to resolve conflict between "Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" and "Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=
>   30ad4fe6b2a6aeed". Choosing "Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" arbitrarily.
>   Consider app.config remapping of assembly "Newtonsoft.Json, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" from Version "6.0.0.0" [C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.8\bin\p
>   lugins\Diagnostics\Newtonsoft.Json.dll] to Version "7.0.0.0" [C:\src\reef\lang\cs\bin\x64\Debug\Org.Apache.REEF.Driver\Newtonsoft.Json.dll] to solve conflict and get rid of warning.
> C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set t
> he "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190. [C:\src\reef\lang\cs\Org.Apache.REEF.Bridge\Org.
> Apache.REEF.Bridge.vcxproj] 
> {code}
> This should be resolved by adding the  {{App.config}} to the offending projects.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)