GenerateResource Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Implements the GenerateResource task. Use the GenerateResource element in your project file to create and execute this task. For usage and parameter information, see GenerateResource Task.

Namespace:   Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.v4.0 (in Microsoft.Build.Tasks.v4.0.dll)

System.Object
  Microsoft.Build.Utilities.Task
    Microsoft.Build.Tasks.TaskExtension
      Microsoft.Build.Tasks.GenerateResource

[RequiredRuntimeAttribute("v2.0")]
public sealed class GenerateResource : TaskExtension

NameDescription
System_CAPS_pubmethodGenerateResource()

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the GenerateResource class.

NameDescription
System_CAPS_pubpropertyAdditionalInputs

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the additional inputs for the dependency checking that the GenerateResource task performs.

System_CAPS_pubpropertyBuildEngine

Gets or sets the instance of the IBuildEngine object used by the task.(Inherited from Task.)

System_CAPS_pubpropertyBuildEngine2

Gets the instance of the IBuildEngine2 object used by the task.(Inherited from Task.)

System_CAPS_pubpropertyBuildEngine3

Gets the instance of the IBuildEngine3 object used by the task.(Inherited from Task.)

System_CAPS_pubpropertyBuildEngine4

Gets the instance of the IBuildEngine4 object used by the task.(Inherited from Task.)

System_CAPS_pubpropertyEnvironmentVariables

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets an array of name-value pairs of environment variables that should be passed to the spawned resgen.exe, in addition to (or selectively overriding) the regular environment block.

System_CAPS_pubpropertyExcludedInputPaths

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets an array of items that specify paths from which tracked inputs will be ignored during Up to date checking.

System_CAPS_pubpropertyExecuteAsTool

This API supports the product infrastructure and is not intended to be used directly from your code. Property to allow multitargeting of ResolveComReferences: If true, tlbimp.exe and aximp.exe from the appropriate target framework will be run out-of-proc to generate the necessary wrapper assemblies.

System_CAPS_pubpropertyExtractResWFiles

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a flag specifying whether this rule is generating .resources files or extracting .ResW files from assemblies.

System_CAPS_pubpropertyFilesWritten

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the names of all files written to disk including the cache file, if present.

System_CAPS_pubpropertyHostObject

Gets or sets the host object associated with the task.(Inherited from Task.)

System_CAPS_pubpropertyLog

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an instance of a TaskLoggingHelperExtension containing task logging methods.(Inherited from TaskExtension.)

System_CAPS_pubpropertyMinimalRebuildFromTracking

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a switch that specifies whether tracked incremental build will be used. If true, incremental build is turned on; otherwise, a rebuild will be forced.

System_CAPS_pubpropertyNeverLockTypeAssemblies

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a Boolean value that specifies whether to create a new AppDomain to evaluate the resources (.resx) files (true) or to create a new AppDomain only when the resources files reference a user's assembly (false).

System_CAPS_pubpropertyOutputDirectory

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a value specifying where to extract .ResW files.

System_CAPS_pubpropertyOutputResources

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the name of the generated files, such as .resources files.

System_CAPS_pubpropertyPublicClass

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a Boolean value that indicates whether the GenerateResource task should create a strongly typed resource class as a public class.

System_CAPS_pubpropertyReferences

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the references to load types in .resx files from.

System_CAPS_pubpropertySdkToolsPath

This API supports the product infrastructure and is not intended to be used directly from your code. Even though the generate resource task will do the processing in process, a logging message is still generated. This logging message will include the path to the windows SDK. Since the targets now will pass in the Windows SDK path we should use this for logging.

System_CAPS_pubpropertySources

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the items to convert.

System_CAPS_pubpropertyStateFile

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the path to an optional cache file that is used to speed up dependency checking of links in .resx input files.

System_CAPS_pubpropertyStronglyTypedClassName

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the class name for the strongly typed resource class.

System_CAPS_pubpropertyStronglyTypedFileName

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the filename for the source file.

System_CAPS_pubpropertyStronglyTypedLanguage

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the language to use when generating the class source for the strongly typed resource.

System_CAPS_pubpropertyStronglyTypedManifestPrefix

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the resource namespace or manifest prefix to use in the generated class source for the strongly typed resource.

System_CAPS_pubpropertyStronglyTypedNamespace

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the namespace to use for the generated class source for the strongly typed resource.

System_CAPS_pubpropertyTLogReadFiles

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of items that represent the read tracking logs.

System_CAPS_pubpropertyTLogWriteFiles

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of items that represent the write tracking logs.

System_CAPS_pubpropertyToolArchitecture

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft.Build.Utilities.ExecutableType of ResGen.exe. Used to determine whether or not Tracker.exe needs to be used to spawn ResGen.exe. If empty, uses a heuristic to determine a default architecture.

System_CAPS_pubpropertyTrackerFrameworkPath

This API supports the product infrastructure and is not intended to be used directly from your code. Path to the appropriate .NET Framework location that contains FileTracker.dll. If set, the user takes responsibility for making sure that the bitness of the FileTracker.dll that they pass matches the bitness of the ResGen.exe that they intend to use. If not set, the task decides the appropriate location based on the current .NET Framework version.

System_CAPS_pubpropertyTrackerLogDirectory

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the intermediate directory into which the tracking logs from running this task will be placed.

System_CAPS_pubpropertyTrackerSdkPath

This API supports the product infrastructure and is not intended to be used directly from your code. Path to the appropriate Windows SDK location that contains Tracker.exe. If set, the user takes responsibility for making sure that the bitness of the Tracker.exe that they pass matches the bitness of the ResGen.exe that they intend to use. If not set, the task decides the appropriate location based on the current Windows SDK.

System_CAPS_pubpropertyTrackFileAccess

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a switch that specifies whether we should be tracking file access patterns.

System_CAPS_pubpropertyUseSourcePath

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a Boolean value that indicates whether the input file's directory is to be used for resolving relative file paths.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodExecute()

This API supports the product infrastructure and is not intended to be used directly from your code. Executes the GenerateResource task.(Overrides Task.Execute().)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: