.net - Google Drive SDK for Portable Libraries -
i in process of creating application winforms. have plans ship application windows phone later. decided use portable libraries. have following target frameworks portable libraries:
.net framework 4 , higher silverlight 4 , higher windows phone 7 , higher .net windows store apps
in portable libraries, have referenced following libraries google drive sdk:
dotnetopenauth.dll google.apis.authentication.oauth2.dll google.apis.dll google.apis.drive.v2.dll google.apis.oauth2.v2.dll log4net.dll newtonsoft.json.net35.dll
till when build solution, works fine have these references anywhere. when use these references in code like:
using google.apis.authentication; using file = google.apis.drive.v2.data.file; public interface iutilities { void samplemethod(iauthenticator authenticator, file file); }
now, no compilation error. when try building solution following
error 1 type or namespace name 'iauthenticator' not found (are missing using directive or assembly reference?) error 3 type or namespace name 'google' not found (are missing using directive or assembly reference?)
if write more code using these libraries, error objects in similar way. can me understand this? let me know if need more info. thanks.
any libraries reference portable class library must portable (and support compatible platforms). json.net has portable version, other libraries using don't. source code libraries , port them pcls, or can create portable abstractions functionality provide , use abstractions allow call platform-specific code.
here sources of more information using portable class libraries:
- blog post: how make portable class libraries work you
- build presentation: create cross-platform apps using portable class libraries
- community samples , links more information: pcl.codeplex.com
Comments
Post a Comment