Export (0) Print
Expand All

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)

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

The GenerateResource type exposes the following members.

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

  NameDescription
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 propertyBuildEngine4Gets the instance of the IBuildEngine4 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 propertyExtractResWFilesGets or sets a flag specifying whether this rule is generating .resources files or extracting .ResW files from assemblies.
Public propertyFilesWrittenInfrastructure. Gets or sets the names of all files written to disk including the cache file, if present.
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 propertyOutputDirectoryGets or sets a value specifying where to extract .ResW files.
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.
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 propertyToolArchitectureMicrosoft.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.
Public propertyTrackerFrameworkPathPath 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.
Public propertyTrackerLogDirectoryGets or sets the intermediate directory into which the tracking logs from running this task will be placed.
Public propertyTrackerSdkPathPath 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.
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.
Top

  NameDescription
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().)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft