Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have created a google service project in which I have added Google.Apis.Drive.v2 package through NuGet. Installation of above package resulted in installation of other dependent packages which included following packages:

<package id="Google.Apis" version="1.9.1" targetFramework="net40" />
  <package id="Google.Apis.Auth" version="1.9.1" targetFramework="net40" />
  <package id="Google.Apis.Core" version="1.9.1" targetFramework="net40" />
  <package id="Google.Apis.Drive.v2" version="1.9.0.1760" targetFramework="net40" />
  <package id="log4net" version="2.0.3" targetFramework="net40" />
  <package id="Microsoft.Bcl" version="1.1.10" targetFramework="net40" />
  <package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net40" />
  <package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="net40" />
  <package id="Microsoft.Net.Http" version="2.2.28" targetFramework="net40" />
  <package id="Newtonsoft.Json" version="6.0.6" targetFramework="net40" />
  <package id="Zlib.Portable" version="1.11.0" targetFramework="net40" />


Reference of google service project is added to google server project. When I build this project on local machine through Visual Studio 2010, all the google service dll plus the packages dll's gets copied to server folder.

But when i tried to build the solution on Windows server 2012, using msbuild.exe through command prompt, many dll's are not getting copied to server folder. But the solution gets build successfully. These are the dll's which belongs to Microsoft.Net.Http and Zlib.Portable package.

-System.Net.Http.dll

-System.Net.Http.Extensions.dll

-System.Net.Http.Primitives.dll

-System.Net.Http.WebRequest.dll

-Zlib.Portable.dll

What I have tried:

The way I am making it to work is, I am required to install the following 2 packages in google server project:

Microsoft.Net.Http
Zlib.Portable

But I dont think that's right, as if it works on my local machine, then it should work on server 2012 also.
Can someone please tell me, what's wrong on server 2012?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900