NodeAffinity 列舉


可判斷專案建置位置的列舉資料型別。An enumerated data type that determines where projects are built.

public enum class NodeAffinity
public enum NodeAffinity
type NodeAffinity = 
Public Enum NodeAffinity


Any 2

專案可以安排於任何位置。The project may be scheduled anywhere.

InProc 0

專案只可以安排於同處理序節點。The project may only be scheduled on the in-proc node. 如果有主機物件或是已指定 ProjectInstance,則會自動發生這種情形。This happens automatically if there is a host object or if a ProjectInstance was specified. 如果它們知道工作明確相依於共用靜態資料或其他主機提供的物件,則主機可能就必須指定這個選項。A host may wish to specify it if they know a task depends explicitly on shared static data or other host-provided objects.

OutOfProc 1

專案只可以安排於跨處理序節點。The project may only be scheduled on an out-of-proc node. 如果主機已知道正在建置的專案可能會污染主機環境 (或是在進行建置時主機會污染環境),則主機可能就必須指定這個選項。A host may wish to specify this if it is known the project being built could contaminate the host environment (or the host contaminates the environment while a build is proceeding.)