共用方式為


ResolveAssemblyReference.Assemblies Property

Definition

These can either be simple fusion names like:

 System

or strong names like

System, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

These names will be resolved into full paths and all dependencies will be found.

Optional attributes are: bool Private [default=true] -- means 'CopyLocal' string HintPath [default=''] -- location of file name to consider as a reference, used when {HintPathFromItem} is one of the paths in SearchPaths. bool SpecificVersion [default=absent] -- when true, the exact fusionname in the Include must be matched. when false, any assembly with the same simple name will be a match. when absent, then look at the value in Include. If its a simple name then behave as if specific version=false. If its a strong name then behave as if specific version=true. string ExecutableExtension [default=absent] -- when present, the resolved assembly must have this extension. when absent, .dll is considered and then .exe for each directory looked at. string SubType -- only items with empty SubTypes will be considered. Items with non-empty subtypes will be ignored. string AssemblyFolderKey [default=absent] -- supported for legacy AssemblyFolder resolution. This key can have a value like 'hklm\vendor folder'. When set, only this particular assembly folder key will be used. This is to support the scenario in VSWhidey#357946 in which there are multiple side-by-side libraries installed and the user wants to pick an exact version. bool EmbedInteropTyeps [default=absent] -- when true, we should treat this assembly as if it has no dependencies and should be completely embedded into the target assembly.

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

public:
 property cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ Assemblies { cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ get(); void set(cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ value); };
public Microsoft.Build.Framework.ITaskItem[] Assemblies { get; set; }
public Microsoft.Build.Framework.ITaskItem[] Assemblies { [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.Assemblies : Microsoft.Build.Framework.ITaskItem[] 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.Assemblies : Microsoft.Build.Framework.ITaskItem[] with get, set
Public Property Assemblies As ITaskItem()

Property Value

The assembly names to resolve into full paths and to find dependencies for.

Attributes

Remarks

The assembly names can either be simple or strong names.

Applies to