Share via


HostServices.SetNodeAffinity(String, NodeAffinity) Method

Definition

Sets the node affinity for a particular project file.

public:
 void SetNodeAffinity(System::String ^ projectFile, Microsoft::Build::Execution::NodeAffinity nodeAffinity);
public void SetNodeAffinity (string projectFile, Microsoft.Build.Execution.NodeAffinity nodeAffinity);
member this.SetNodeAffinity : string * Microsoft.Build.Execution.NodeAffinity -> unit
Public Sub SetNodeAffinity (projectFile As String, nodeAffinity As NodeAffinity)

Parameters

projectFile
String

The project file. If set to String.Empty, all projects will use the specified affinity. If set to null, all affinities will be cleared.

nodeAffinity
NodeAffinity

The NodeAffinity to set.

Applies to