Click here to Skip to main content
15,918,123 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Try to do it but could not successful.
I use manage Nuget and import Google.Apis.Drive.v2 and many other name space but I get error "is an ambiguous reference between 'Google.Apis.Drive.v2.Data.File".

What I have tried:

I use manage Nuget and import Google.Apis.Drive.v2 and many other name space but I get error "is an ambiguous reference between 'Google.Apis.Drive.v2.Data.File".
Posted
Updated 26-Apr-16 1:27am

1 solution

Google.Apis.Drive.v2.Data and System.IO both define File class, I mean
Both namespaces (Google.Apis.Drive.v2.Data and System.IO) defines class File and, probably, you have both namespaces "included" with using statement. you need to use fully qualified name, like below snippet
C#
using GoogleDataAPI = Google.Apis.Drive.v2.Data;
using SystemFile =  System.IO.File

it will resolve the things
 
Share this answer
 

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