#StackBounty: #c# #async-await #portable-class-library Using async / await in .NET Portable Library project

Bounty: 50

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


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.