Using async / await in .NET Portable Library project

356 Views Asked by At

This line

StorageFile photo = await cameraUI.CaptureFileAsync(CameraCaptureUIMode.Photo);

gives me this error:

Error CS0012
The type 'IAsyncOperation<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows.Foundation.FoundationContract, Version=3.0.0.0, Culture=neutral,

How to fix it?

screenshot

0

There are 0 best solutions below