Sdílet prostřednictvím


ResolveAssemblyReference.AutoUnify Property

Definition

[default=false] This parameter is used for building assemblies, such as DLLs, which cannot have a normal App.Config file.

When true, the resulting dependency graph is automatically treated as if there were an App.Config file passed in to the AppConfigFile parameter. This virtual App.Config file has a bindingRedirect entry for each conflicting set of assemblies such that the highest version assembly is chosen. A consequence of this is that there will never be a warning about conflicting assemblies because every conflict will have been resolved.

When true, each distinct remapping will result in a high priority comment indicating the old and new versions and the fact that this was done automatically because AutoUnify was true.

When true, the AppConfigFile parameter should be empty. Otherwise, it's an error.

When false, no assembly version remapping will occur automatically. When two versions of an assembly are present, there will be a warning.

When false, each distinct conflict between different versions of the same assembly will result in a high priority comment. After all of these comments are displayed, there will be a single warning with a unique error code and text that reads "Found conflicts between different versions of reference and dependent assemblies".

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 property bool AutoUnify { bool get(); void set(bool value); };
public bool AutoUnify { get; set; }
public bool AutoUnify { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.AutoUnify : bool with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.AutoUnify : bool with get, set
Public Property AutoUnify As Boolean

Property Value

Attributes

Remarks

The default value is false.

For more information about this property, see ResolveAssemblyReference Task.

Applies to