This documentation is archived and is not being maintained.

GenerateResource Class

This API supports the .NET Framework 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)

public sealed class GenerateResource : TaskExtension

The GenerateResource type exposes the following members.

Public methodGenerateResourceInfrastructure. Initializes a new instance of the GenerateResource class.

Public propertyAdditionalInputsGets or sets the additional inputs for the dependency checking that the GenerateResource task performs.
Public propertyBuildEngineGets or sets the instance of the IBuildEngine object used by the task. (Inherited from Task.)
Public propertyBuildEngine2Gets the instance of the IBuildEngine2 object used by the task. (Inherited from Task.)
Public propertyBuildEngine3Gets the instance of the IBuildEngine3 object used by the task. (Inherited from Task.)
Public propertyEnvironmentVariablesGets 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.
Public propertyExcludedInputPathsGets or sets an array of items that specify paths from which tracked inputs will be ignored during Up to date checking.
Public propertyExecuteAsToolProperty 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.
Public propertyFilesWrittenInfrastructure. Gets or sets the names of all files written to disk including the cache file, if present.
Protected propertyHelpKeywordPrefixGets or sets the prefix used to compose Help keywords from resource names. (Inherited from Task.)
Public propertyHostObjectGets or sets the host object associated with the task. (Inherited from Task.)
Public propertyLogInfrastructure. Gets an instance of a TaskLoggingHelperExtension containing task logging methods. (Inherited from TaskExtension.)
Public propertyMinimalRebuildFromTrackingGets 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.
Public propertyNeverLockTypeAssembliesInfrastructure. 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).
Public propertyOutputResourcesInfrastructure. Gets or sets the name of the generated files, such as .resources files.
Public propertyPublicClassInfrastructure. Gets or sets a Boolean value that indicates whether the GenerateResource task should create a strongly typed resource class as a public class.
Public propertyReferencesInfrastructure. Gets or sets the references to load types in .resx files from.
Public propertySdkToolsPathEven 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.
Public propertySourcesInfrastructure. Gets or sets the items to convert.
Public propertyStateFileInfrastructure. Gets or sets the path to an optional cache file that is used to speed up dependency checking of links in .resx input files.
Public propertyStronglyTypedClassNameInfrastructure. Gets or sets the class name for the strongly typed resource class.
Public propertyStronglyTypedFileNameInfrastructure. Gets or sets the filename for the source file.
Public propertyStronglyTypedLanguageInfrastructure. Gets or sets the language to use when generating the class source for the strongly typed resource.
Public propertyStronglyTypedManifestPrefixGets or sets the resource namespace or manifest prefix to use in the generated class source for the strongly typed resource.
Public propertyStronglyTypedNamespaceInfrastructure. Gets or sets the namespace to use for the generated class source for the strongly typed resource.
Protected propertyTaskResourcesGets or sets the culture-specific resources associated with the task. (Inherited from Task.)
Public propertyTLogReadFilesGets an array of items that represent the read tracking logs.
Public propertyTLogWriteFilesGets an array of items that represent the write tracking logs.
Public propertyToolArchitecture
Public propertyTrackerFrameworkPath
Public propertyTrackerLogDirectoryGets or sets the intermediate directory into which the tracking logs from running this task will be placed.
Public propertyTrackerSdkPath
Public propertyTrackFileAccessGets or sets a switch that specifies whether we should be tracking file access patterns.
Public propertyUseSourcePathInfrastructure. Gets or sets a Boolean value that indicates whether the input file's directory is to be used for resolving relative file paths.

Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodExecuteInfrastructure. Executes the GenerateResource task. (Overrides Task.Execute().)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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