Share via


TARGETTYPE

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

This macro definition specifies the type of file being built.

You can set TARGETTYPE to any of the values in the following table.

Value Description

LIBRARY

A .lib file.

DYNLINK

A .dll file.

PROGRAM

An .exe file.

MANAGED_EXE

An .exe file for a console application that uses managed code.

When you set this value, you must also include the MANAGED_REFERENCES macro in your Sources file. You can optionally include the MANAGED_RESOURCES macro if the application uses resources.

MANAGED_DLL

A .dll file that uses managed code.

When you set this value, you must also include the MANAGED_REFERENCES macro in your Sources file.

MANAGED_WINEXE

An .exe file for a Windows program that uses managed code.

When you set this value, you must also include the MANAGED_REFERENCES macro in your Sources file. You can optionally include the MANAGED_RESOURCES macro, the MANAGED_WIN32ICONS macro, and the MANAGED_WIN32RESOURCES macro.

MANAGED_MODULE

A module that uses managed code.

When you set this value, you must also include the MANAGED_REFERENCES macro and the MANAGED_ADDMODULES macro in your Sources file.

NOTARGET

The null project target.

See Also

Concepts

Sources File