Share via


ResolveCodeAnalysisRuleSet Class

Determines which file, if any, should be used as the code analysis rule set based on the supplied code analysis properties.

Inheritance Hierarchy

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

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public NotInheritable Class ResolveCodeAnalysisRuleSet _
    Inherits TaskExtension
public sealed class ResolveCodeAnalysisRuleSet : TaskExtension
public ref class ResolveCodeAnalysisRuleSet sealed : public TaskExtension
[<Sealed>]
type ResolveCodeAnalysisRuleSet =  
    class 
        inherit TaskExtension 
    end
public final class ResolveCodeAnalysisRuleSet extends TaskExtension

The ResolveCodeAnalysisRuleSet type exposes the following members.

Constructors

  Name Description
Public method ResolveCodeAnalysisRuleSet Initializes a new instance of ResolveCodeAnalysisRuleSet.

Top

Properties

  Name Description
Public property 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.)
Public property 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.)
Public property 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.)
Public property 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.)
Public property CodeAnalysisRuleSet Gets or sets the desired code analysis rule set file. May be a simple name, relative path, or full path.
Public property CodeAnalysisRuleSetDirectories Gets or sets the set of additional directories to search for code analysis rule set files.
Public property 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.)
Public property 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.)
Public property MSBuildProjectDirectory Gets or sets the location of the project currently being built.
Public property ResolvedCodeAnalysisRuleSet Gets or sets the location of the resolved rule set file.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method Execute Executes the task. (Overrides Task.Execute().)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

Introduced in Visual Studio 2015.

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.

See Also

Reference

Microsoft.Build.Tasks Namespace