Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference conflict

I have added a references to the following dll's to my website

Google.GData.Client.dll
Google.GData.YouTube.dll
Google.GData.Extensions.dll

they are used for uploading video to youtube. Now when I try to compile my website it adds another dll called Newtonsoft.Json.dll and compilation fails with

Error 4 The type 'System.Func' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll' and 'g:\Projects\X\bin\Newtonsoft.Json.dll'

I can't believe that google has released a product with such a bug, I must be missing something here?

Does any one know how to workaround this issue?

like image 680
jekcom Avatar asked Oct 06 '22 23:10

jekcom


1 Answers

Solved by dowloading the 4.0 version of the Newtonsoft.Json.dll from http://json.codeplex.com/.

Google seems to distribute only the 2.0 version.

like image 124
jekcom Avatar answered Oct 13 '22 11:10

jekcom