Reputation: 61
I updated Visual Studio Community 2015 to Update 3 and since then, all "await" statements in UWP apps are throwing errors.
The errors I receive are -
The type 'IAsyncAction' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null,
The type 'IAsyncActionWithProgress<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null,
The type 'IAsyncOperation<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null,
The type 'IAsyncOperationWithProgress<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null,
For now, this is all that I have tried to - Clean install Visual Studio Community 2015 Update 3 along with UWP Tools 1.4, SDK 10586 and SDK 10240; manually reinstalling each SDK.
Upvotes: 1
Views: 321
Reputation: 61
I uninstalled both SDKs manually and reinstalled them. The problem seems to be fixed lol.
Upvotes: 1
Reputation: 1155
I've had this error in the past too when I upgraded from VS version 1 to 2 I think, seem like this error was caused by me trying to upgrade instead of doing a clean install, I fixed it by removing VS and anything related to it from the control panel, then did a clean install and it was fixed.
Upvotes: 1