Share via


UpdateExtensions.AddLinkFiles Method

Definition

Adds files as links into the project.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> AddLinkFiles (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> projects, System.Collections.Generic.IEnumerable<string> itemPaths, string targetFolder, string? itemType = default);
static member AddLinkFiles : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> * seq<string> * string * string -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>
<Extension()>
Public Function AddLinkFiles (projects As IAsyncUpdatable(Of IProjectSnapshot), itemPaths As IEnumerable(Of String), targetFolder As String, Optional itemType As String = Nothing) As IAsyncUpdatable(Of IProjectSnapshot)

Parameters

projects
IAsyncUpdatable<IProjectSnapshot>

A set of projects where this change should apply to.

itemPaths
IEnumerable<String>

Path of file items. They must be outside of the project cone.

targetFolder
String

A relative path of a folder inside the project.

itemType
String

The optional item type of new files. (This might not be supported by all project systems.)

Returns

A set of projects updated.

Applies to