Lire en anglais

Partager via


NodeAffinity Enum

Definition

Controls where projects must be built.

C#
public enum NodeAffinity
Inheritance
NodeAffinity

Fields

Name Value Description
InProc 0

The project may only be scheduled on the in-proc node. 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.)

Any 2

The project may be scheduled anywhere.

Applies to

Produit Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1