An environment variable, C++/CX compiler options, and linker options support the building of apps for the Windows Runtime.
|
Option |
Description |
|---|---|
|
/ZW:nostdlib |
Enables Windows Runtime language extensions. The nostdlib parameter prevents the compiler from using the standard, predefined search path to find assembly and .winmd files. The /ZW compiler option implicitly specifies the following compiler options:
|
|
/AI dir |
Adds a directory, which is specified by the dir parameter, to the search path that the compiler uses to find assembly and .winmd files. |
|
/FU file |
Forces the inclusion of the specified module, or .winmd file. That is, you don't have to specify #using file in your source code. The compiler automatically forces the inclusion of its own Windows metadata file, Platform.winmd. |
|
/D "WINAPI_FAMILY=2" |
Creates a definition that enables the use of a subset of the Win32 SDK that's compatible with the Windows Runtime. |
|
Option |
Description |
|---|---|
|
/APPCONTAINER[:NO] |
Marks the executable as runnable in the appcontainer (only). |
|
/WINMD[:{NO|ONLY}] |
Emits a .winmd file and an associated binary file. This option must be passed to the linker for a .winmd to be emitted. NO—Doesn't emit a .winmd file, but does emit a binary file. ONLY—Emits a .winmd file, but doesn't emit a binary file. |
|
/WINMDFILE:filename |
The name of the .winmd file to emit, instead of the default .winmd file name. If multiple file names are specified on the command line, the last name is used. |
|
/WINMDDELAYSIGN[:NO] |
Partially signs the .winmd file and places the public key in the binary. NO—(Default) Doesn't sign the .winmd file. /WINMDDELAYSIGN has no effect unless /WINMDKEYFILE or /WINMDKEYCONTAINER is also specified. |
|
/WINMDKEYCONTAINER:name |
Specifies a key container to sign an assembly. The name parameter corresponds to the key container that's used to sign the metadata file. |
|
/WINMDKEYFILE:filename |
Specifies a key or a key pair to sign the assembly. The filename parameter corresponds to the key that's used to sign the metadata file. |