HostServices.SetNodeAffinity(String, NodeAffinity) Method
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.
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)
- 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.