次の方法で共有


RC Task

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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.

Parameters

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

Parameter Description
AdditionalIncludeDirectories Optional 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.
AdditionalOptions Optional 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.
Culture Optional 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.
IgnoreStandardIncludePath Optional 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.
NullTerminateStrings Optional 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.
PreprocessorDefinitions Optional 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.
ResourceOutputFileName Optional 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.
ShowProgress Optional 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.
Source Required ITaskItem[] parameter.

Defines an array of MSBuild source file items that can be consumed and emitted by tasks.
SuppressStartupBanner Optional 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.
TrackerLogDirectory Optional String parameter.

Specifies the tracker log directory.
UndefinePreprocessorDefinitions Undefine 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.

Remarks

See Also

Task Reference