Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A task that emits an error given a resource string. Engine will add project file path and line/column information.
Inheritance Hierarchy
System.Object
  Microsoft.Build.Utilities.Task
    Microsoft.Build.Tasks.TaskExtension
      Microsoft.Build.Tasks.ErrorFromResources
Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)
Syntax
'Declaration
Public NotInheritable Class ErrorFromResources _
    Inherits TaskExtension
public sealed class ErrorFromResources : TaskExtension
public ref class ErrorFromResources sealed : public TaskExtension
[<Sealed>]
type ErrorFromResources =  
    class 
        inherit TaskExtension 
    end
public final class ErrorFromResources extends TaskExtension
The ErrorFromResources type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]()  | 
ErrorFromResources | Initializes a new instance of ErrorFromResources. | 
Top
Properties
| Name | Description | |
|---|---|---|
![]()  | 
Arguments | Gets or sets optional arguments to use when formatting the error message. | 
![]()  | 
BuildEngine | Gets or sets the instance of the IBuildEngine object used by the task.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from Task.) | 
![]()  | 
BuildEngine2 | Gets the instance of the IBuildEngine2 object used by the task.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from Task.) | 
![]()  | 
BuildEngine3 | Gets the instance of the IBuildEngine3 object used by the task.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from Task.) | 
![]()  | 
BuildEngine4 | Gets the instance of the IBuildEngine4 object used by the task.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from Task.) | 
![]()  | 
Code | Gets or sets the error code. | 
![]()  | 
File | Gets or sets the relevant file, if there is one. If none is provided, the file containing the Error task will be used. | 
![]()  | 
HelpKeyword | Gets or sets the error help keyword. | 
![]()  | 
HostObject | Gets or sets the host object associated with the task.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from Task.) | 
![]()  | 
Log | Infrastructure. Gets an instance of a TaskLoggingHelperExtension containing task logging methods.MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. (Inherited from TaskExtension.) | 
![]()  | 
Resource | Gets or sets the resource from which error message is extracted. | 
Top
Methods
| Name | Description | |
|---|---|---|
![]()  | 
Equals | (Inherited from Object.) | 
![]()  | 
Execute | Log sthe requested error message. (Overrides Task.Execute().) | 
![]()  | 
GetHashCode | (Inherited from Object.) | 
![]()  | 
GetType | (Inherited from Object.) | 
![]()  | 
ToString | (Inherited from Object.) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.gif)
.gif)