Compartilhar via


CreateCSharpManifestResourceName task

Creates a C#-style manifest name from a given .resx file name or other resource.

Parameters

The following table describes the parameters of the CreateCSharpManifestResourceName task.

Parameter Description
ManifestResourceNames ITaskItem [] output read-only parameter.

The resulting manifest names.
ResourceFiles Required String parameter.

The name of the resource file from which to create the C# manifest name.
RootNamespace Optional String parameter.

The root namespace of the resource file, typically taken from the project file. May be null.
PrependCultureAsDirectory Optional Boolean parameter.

If true, the culture name is added as a directory name just before the manifest resource name. Default value is true.
ResourceFilesWithManifestResourceNames Optional read-only String output parameter.

Returns the name of the resource file that now includes the manifest resource name.

Remarks

The CreateCSharpManifestResourceName task determines the appropriate manifest resource name to assign to a given .resx or other resource file. The task provides a logical name to a resource file, and then attaches it to an output parameter as metadata.

In addition to the parameters listed above, this task inherits parameters from the TaskExtension class, which itself inherits from the Task class. For a list of these additional parameters and their descriptions, see TaskExtension base class.

See also