Skip to main content

consumewinrtextension

Enables the WinRT extension, C++/CX, for the specified projects/files.

consumewinrtextension ("value")

Parameters

value is one of:

ValueDescription
DefaultCompiles the file with the default for the toolset.
OnCompiles the file with the WinRT extension enabled.
OffCompiles the file without the WinRT extension enabled.

Applies To

Workspace, project, and file configurations.

Availability

Premake 5.0.0-beta2 and later for Visual Studio 2019+.

Examples

filter { "files:**_winrt.cpp" }
consumewinrtextension "On"