#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=,

How to fix it?


Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

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