1

I tried to make use of SQLite in C# like here. In the step "Initialize the SQLite database" I get the problem for the line

await ApplicationData.Current.LocalFolder.CreateFileAsync("sqliteSample.db", CreationCollisionOption.OpenIfExists);

because:

Error CS4036 'IAsyncOperation<StorageFile>' does not contain a definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a first argument of type 'IAsyncOperation<StorageFile>' could be found (are you missing a using directive for 'System'? 

I am using System; already. Any idea how to fix it?

NullOrNotNull
  • 365
  • 1
  • 4
  • 11

0 Answers0