/target:winmdobj (C# Compiler Options)
The output of a file that’s compiled by using the /target:winmdobj compiler option is designed to be used only as input for the WimMDExp export tool; the .winmdobj file itself isn’t referenced directly.
If you specify the /target:winmdobj option at a command prompt, all files until the next /out or /target:module option are used to create the Windows program.
To set this compiler option in the Visual Studio IDE for a Windows Store app
In Solution Explorer, open the shortcut menu for your project, and then choose Properties.
Choose the Application tab.
In the Output type list, choose WinMD File.
The WinMD File option is available only for Windows Store app templates.
For information about how to set this compiler option programmatically, see OutputType.
The following command compiles filename.cs into an intermediate .winmdobj file.
csc /target:winmdobj filename.cs