RC Task

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see RC Task on docs.microsoft.com. Wraps the Microsoft Windows Resource Compiler tool, rc.exe. The RC task compiles resources, such as cursors, icons, bitmaps, dialog boxes, and fonts, into a resource (.res) file. For more information, see "Resource Compiler" on the MSDN Web site.

The following table describes the parameters of the RCtask. Most task parameters, and a few sets of parameters, correspond to a command-line option.

ParameterDescription
AdditionalIncludeDirectoriesOptional String[] parameter.

Adds a directory to the list of directories that are searched for include files.

For more information, see the /I option in Using RC (The RC Command Line) on the MSDN Web site.
AdditionalOptionsOptional String parameter.

A list of command-line optionsor example, "/option1 /option2 /option#". Use this parameter to specify command-line options that are not represented by any other RC task parameter.

For more information, see the options in Using RC (The RC Command Line) on the MSDN Web site.
CultureOptional String parameter.

Specifies a locale ID that represents the culture used in the resources.

For more information, see the /l option in Using RC (The RC Command Line) on the MSDN Web site.
IgnoreStandardIncludePathOptional Boolean parameter.

If true, prevents the resource compiler from checking the INCLUDE environment variable when it searches for header files or resource files.

For more information, see the /x option in Using RC (The RC Command Line) on the MSDN Web site.
NullTerminateStringsOptional Boolean parameter.

If true, null-terminates all strings in the string table.

For more information, see the /n option in Using RC (The RC Command Line) on the MSDN Web site.
PreprocessorDefinitionsOptional String[] parameter.

Define one or more preprocessor symbols for the resource compiler. Specify a list of macro symbols.

For more information, see the /d option in Using RC (The RC Command Line) on the MSDN Web site. Also see UndefinePreprocessorDefinitions in this table.
ResourceOutputFileNameOptional String parameter.

Specifies the name of the resource file. Specify a resource file name.

For more information, see the /fo option in Using RC (The RC Command Line) on the MSDN Web site.
ShowProgressOptional Boolean parameter.

If true, displays messages that report on the progress of the compiler.

For more information, see the /v option in Using RC (The RC Command Line) on the MSDN Web site.
SourceRequired ITaskItem[] parameter.

Defines an array of MSBuild source file items that can be consumed and emitted by tasks.
SuppressStartupBannerOptional Boolean parameter.

If true, prevents the display of the copyright and version number message when the task starts.

For more information, type the /? command-line option and then see the /nologo option.
TrackerLogDirectoryOptional String parameter.

Specifies the tracker log directory.
UndefinePreprocessorDefinitionsUndefine a preprocessor symbol.

For more information, see the /u option in Using RC (The RC Command Line) on the MSDN Web site. Also see PreprocessorDefinitions in this table.

Task Reference

Show: