1. Create a Desktop App or Console App.
  2. In Solution Explorer, right click the project name and select Unload Project.
  3. Right click the project name and select Edit MyApp.csproj file.
  4. Add the <TargetPlatformVersion> tag:

  5. Right click the project name again and select Reload Project.
  6. Right click References and select Add Reference….
  7. In the left column select Windows > Core and from the list check Windows.Data (or the namespace that contains the type you intend to use).
  8. You will probably need to also reference Windows.Foundation.
  9. Now, in the left colum select Browse and then click Browse….
  10. Go to C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v4.5 and select System.Runtime.dll.
  11. If you need to use async and await, click Browse… again and include System.Runtime.WindowsRuntime.dll too.


Happy coding!