NAnt SDK Documentation - v0.92 |

# McTask Class

Compiles messages using mc.exe, Microsoft's Win32 message compiler.

For a list of all members of this type, see McTask Members.

System.Object
NAnt.Core.Element
NAnt.Core.Task
NAnt.Core.Tasks.ExternalProgramBase
NAnt.VisualCpp.Tasks.McTask

[Visual Basic]
<TaskName(Name:="mc")>
Public Class McTask
Inherits ExternalProgramBase
[C#]
[TaskName(Name="mc")]
public class McTask : ExternalProgramBase

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Example

Compile `text.mc` using the default options.

    <mc mcfile="text.mc"/>

Compile `text.mc`, passing a path to store the header, the rc file and some additonal options.

    <mc mcfile="text.mc" headerpath=".\build" rcpath=".\build" options="-v -c -u"/>

#### Requirements

Namespace: NAnt.VisualCpp.Tasks

Assembly: NAnt.VisualCppTasks (in NAnt.VisualCppTasks.dll)

#### See Also

McTask Members | NAnt.VisualCpp.Tasks Namespace