Microsoft.Build.Tasks Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains the implementation of all tasks shipping with MSBuild. For information, see MSBuild.
Add |
Generates an application manifest or adds an entry to the existing one when PreferNativeArm64 property is true. |
AL |
This class defines the "AL" XMake task, which enables using al.exe to link modules and resource files into assemblies. |
App |
This class provides the same functionality as the Task class, but derives from MarshalByRefObject so that it can be instantiated in its own app domain. |
Asp |
The AspNetCompiler task, which is a wrapper around aspnet_compiler.exe |
Assign |
Class: AssignCulture This task takes a list of resource file names and sets an attribute that contains the culture name embedded in the file name:
The task can also return a list of "Culture-neutral" file names, like:
This is because embedded resources are referred to this way. There are plenty of corner cases with this task. See the unit test for more details. |
Assign |
Task to assign a reasonable "Link" metadata to the provided items. |
Assign |
Assigns XML project configurations to project reference task items. |
Assign |
Create a new list of items that have <TargetPath> attributes if none was present in the input. |
Call |
Implements the |
Code |
A task factory which can take code dom supported languages and create a task out of it |
Combine |
Task to call Path.Combine. |
Combine |
Combines items that represent properties and values into an XML representation. |
Combine |
Combines multiple XML elements |
Command |
CommandLineBuilder derived class for specialized logic specific to MSBuild tasks |
Convert |
Task to call Path.GetFullPath |
Copy |
A task that copies files. |
Create |
Base class for task that determines the appropriate manifest resource name to assign to a given resx or other resource. |
Create |
Forward a list of items from input to output. This allows dynamic item lists. |
Create |
Base class for task that determines the appropriate manifest resource name to assign to a given resx or other resource. |
Create |
Just a straight pass-through of the inputs through to the outputs. |
Create |
Creates a temporary Visual C++ project with MSBuild references replaced with file references. |
Create |
Base class for task that determines the appropriate manifest resource name to assign to a given resx or other resource. |
Csc |
Implements the |
Delete |
Delete files from disk. |
Download |
Represents a task that can download a file. |
Error |
Task that simply emits an error. Engine will add project file path and line/column information. |
Error |
Task that emits an error given a resource string. Engine will add project file path and line/column information. |
Exec |
This class defines an "Exec" MSBuild task, which simply invokes the specified process with the specified arguments, waits for it to complete, and then returns True if the process completed successfully, and False if an error occurred. |
Find |
Finds the app.config file, if any, in the provided lists. For compat reasons, it has to follow a particular arbitrary algorithm. It also adds the TargetPath metadata. |
Find |
A task that finds an item with the specified itemspec, if present, in the provided list. |
Find |
Returns the reference assembly paths to the various frameworks |
Find |
Given a list of items, determine which are in the cone of the folder passed in and which aren't. |
Format |
Formats a url by canonicalizing it (i.e. " " -> "%20") and transforming "localhost" to "machinename". |
Format |
Formats a version by combining version and revision. |
Generate |
Generates an application manifest for ClickOnce projects. |
Generate |
Take suggested redirects (from the ResolveAssemblyReference and GenerateOutOfBandAssemblyTables tasks) and add them to an intermediate copy of the App.config file. |
Generate |
Generates a bootstrapper for ClickOnce deployment projects. |
Generate |
Generates a deploy manifest for ClickOnce projects. |
Generate |
Generates a bootstrapper for ClickOnce deployment projects. |
Generate |
Base class for all manifest generation tasks. |
Generate |
This class defines the "GenerateResource" MSBuild task, which enables using resource APIs to transform resource files. |
Generate |
This task generates the application trust from the base manifest and the TargetZone and ExcludedPermissions properties. |
Get |
Resolves metadata for the specified set of assemblies. |
Get |
Sniffs input files for their assembly identities, and outputs a set of items with the identity information. |
Get |
Performs SetPlatform negotiation for all project references when opted in via the EnableDynamicPlatformResolution property. See ProjectReference-Protocol.md for details. |
Get |
Computes the checksum for a single file. |
Get |
Returns the paths to the various frameworks versions. |
Get |
Returns paths to the frameworks SDK. |
Get |
Gathers the list of installed SDKS in the registry and on disk and outputs them into the project so they can be used during SDK reference resolution and RAR for single files. |
Get |
Returns the reference assembly paths to the various frameworks |
Get |
Resolves an SDKReference to a full path on disk |
Hash |
Generates a hash of a given ItemGroup items. Metadata is not considered in the hash. |
LC |
The License Compiler task |
Make |
A task that creates a directory |
Managed |
Defines the properties and methods common to managed compiler tasks. |
Message |
Task that simply emits a message. Importance defaults to high if not specified. |
Move |
Task to move one or more files. |
MSBuild |
Implements the |
MSBuild |
Represents a task that produces localized messages based on the specified resource name. This task is intended to be called from internal targets only. |
Read |
Read a list of items from a file. |
Register |
Registers a managed assembly for COM interop (equivalent of regasm.exe functionality, but this code doesn't actually call the exe). |
Remove |
Remove the specified directories. |
Remove |
Given a list of items, remove duplicate items. Attributes are not considered. Case insensitive. |
Requires |
This task determines if this project requires VS2008 SP1 assembly. |
Resolve |
Given a list of assemblyFiles, determine the closure of all assemblyFiles that depend on those assemblyFiles including second and nth-order dependencies too. |
Resolve |
Determines which file, if any, to be used as the code analysis rule set based on the supplied code analysis properties. |
Resolve |
Main class for the COM reference resolution task for .NET Core |
Resolve |
Determine the strong name key source |
Resolve |
This task resolves items in the build process (built, dependencies, satellites, content, debug symbols, documentation, etc.) to files for manifest generation. |
Resolve |
Main class for the native reference resolution task. |
Resolve |
Determines the output files for non-MSBuild project references. |
Resolve |
Base class for ResolveNonMSBuildProjectOutput and AssignProjectConfiguration, since they have similar architecture |
Resolve |
Resolves an SDKReference to a full path on disk |
Resolve |
Determines the output files for Visual C++ project references. |
Roslyn |
|
Set |
|
SGen |
Genererates a serialization assembly containing XML serializers for the input assembly. |
Sign |
This task signs the passed in file using the Authenticode cert provided and optionally uses a timestamp if a URL is provided. It can sign ClickOnce manifests as well as exe's. |
Task |
A small intermediate class for MSBuild tasks, see also TaskLoadInSeparateAppDomainExtension |
Task |
Helper logging class for tasks, used for dealing with two resource streams. |
Task |
|
Telemetry |
Task that logs telemetry. |
Tool |
A small intermediate class between ToolTask and classes using it in XMakeTasks, implementing functionality that we didn't want to expose in Utilities |
Touch |
This class defines the touch task. |
Unregister |
Registers a managed assembly for COM interop (equivalent of regasm.exe functionality, but this code doesn't actually call the exe). |
Unzip |
Represents a task that can extract a .zip archive. |
Update |
Updates selected properties in a manifest and resigns. |
Vbc |
Implements the |
VCBuild |
Implements the |
Verify |
Verifies that a file matches the expected file hash. |
Warning |
Task that simply emits a warning. Engine will add the project path because we do not specify a filename. |
Win |
Exports a managed assembly to a windows runtime metadata. |
Write |
Generates a temporary code file with the specified generated code fragment. Does not delete the file. |
Write |
Appends a list of items to a file. One item per line with carriage returns in-between. |
Xaml |
The task factory provider for XAML tasks. |
Xml |
A task that returns values as specified by XPath Query from an XML file. |
Xml |
A task that sets values as specified by XPath Query into a XML file. |
Xsl |
A task that transforms a XML input with an XSLT or Compiled XSLT and outputs to screen or specified file. |
Zip |
Extracted |
Extracted class name from the source file. |
IFixed |
The original ITypeInfo interface in the CLR has incorrect definitions for GetRefTypeOfImplType and GetRefTypeInfo. It uses ints for marshalling handles which will result in a crash on 64 bit systems. This is a temporary interface for use until the one in the CLR is fixed. When it is we can go back to using ITypeInfo. |
IUnregister |