jfversluis / FilePicker-Plugin-for-Xamarin-and-Windows

FilePicker Plugin for Xamarin and Windows
MIT License
157 stars 80 forks source link

the word is not recognized CrossFilePicker #205

Closed jpolocosme closed 4 years ago

jpolocosme commented 4 years ago

I have this code that they show in their library

try
            {
                FileData fileData = await CrossFilePicker.Current.PickFile();

                if (fileData == null)
                    return; // user canceled file picking

                string fileName = fileData.FileName;

            }
            catch (Exception ex)
            {
                System.Console.WriteLine("Exception choosing file: " + ex.ToString());
            }

I install fine from the visual studio but CrossFilePicker It marks me in red and there is no solution to call some "using" help me pls!

vividos commented 4 years ago

Did you install the NuGet package? It should then be available. You can see which using is necessary in the sample project in this GitHub repository.

jpolocosme commented 4 years ago

yes, install the nugget, but CrossFilePicker not recognized by the nugget

jpolocosme commented 4 years ago

just need to install the nugget? should I import the github repository into my project?

vividos commented 4 years ago

Yes, installing the NuGet package is enough.