Here is our question: how can I recompile the Google drive api sdk to dotnet? => We did not find the source code. => There is one source file in the binary package that is not supplied with the project, and we do not know what to do with it.
Reason for question:
In dotnet, we cannot use the latest version of the Google Drive api dll downloaded from Google: Google.Apis.Drive.v2
We get compilation errors, such as:
Warning 10 The main link "Google.Apis.Drive.v2" cannot be resolved, since it has an indirect dependence on the system assembly "System.Runtime, Version = 1.5.11.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a", which cannot be resolved within the target framework. ".NETFramework, Version = v4.0". To fix this problem, remove the link "Google.Apis.Drive.v2" or reconfigure the application to a version of the framework containing "System.Runtime, Version = 1.5.11.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a".
Reason: This is because we are in Visual Studio 2010 with dotnet framework 4.0. Apparently, Google.Apis.Drive.v2 compiled with dependencies on the 4.5 framework.
We cannot upgrade our project to Dotnet framework 4.5, because we only have Visual Studio 2010, and it will take months of testing for the 2012 visual studio.
Troubleshooting We tried to use binding redirection in the app.config files, but it does not work with class library projects that reference assemblies that need redirection (here Google.Apis.Drive.v2). For information, binding redirection worked fine if we changed the project to a console application but could not return to the library class.
@ Google Support: - Where do we download the source code for Google Drive api dll and how to build it? - Do you plan to send a library for dotnet 4.0, because forcing 4.5 blocks many companies?