Skip to content

Instantly share code, notes, and snippets.

@terriblememory
Created December 12, 2017 20:14
Show Gist options
  • Save terriblememory/b2cb006de55236b89b4bc90a8be27a90 to your computer and use it in GitHub Desktop.
Save terriblememory/b2cb006de55236b89b4bc90a8be27a90 to your computer and use it in GitHub Desktop.
Configuring a C++/WinRT project in Visual Studio.

Configuring a C++/WinRT project in Visual Studio.

  1. Select Tools|Nuget Package Manager|Manage Nuget Packages for Solution...
  2. Select Browse, search for cppwinrt and install for the project.
  3. Right click the project, and select Properties.
  4. Select All Configurations and All Platforms.
  5. Select C/C++, Command Line.
  6. Add /await /std:c++latest command line switches.
  7. Select C/C++, All Options.
  8. Set Consume Windows Runtime Extension to No.
  9. Select Linker, Windows Metadata.
  10. Set Generate Windows Metadata to No.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment