/target:winmdobj (C# Compiler Options)
Updated: July 20, 2015
For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
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.
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 8.x 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