Прочетете на английски

Споделяне чрез


ExternalProjectsProvider Class

Definition

Enable providing access to external [potentially remote] ProjectCollection.

C#
public abstract class ExternalProjectsProvider
Inheritance
ExternalProjectsProvider

Constructors

Methods

Disconnected(ProjectCollection)

Called when External provider is "disconnected" from the local collection - aka it will be no longer used to extend the projects list. This is triggered by either project collection disposing or when another call to SetExternalProjectsProvider is invoked. The purpose of this call is to allow the external provider release any associate data (caches/connections etc).

GetLoadedProjects(String)

Provide the list of remote projects (projects in the remote collection) Note all returned objects will be local "linked" Project object proxies.

SetExternalProjectsProvider(ProjectCollection, ExternalProjectsProvider)

Attach an external project provider to a msbuild ProjectCollection.

Note at any time there could be only one ExternalProvider attached.

Can be called with link == null, in which case it will "clear" the external provider on the target collection

Applies to

Продукт Версии
MSBuild 16, 17
MSBuild (.NET Core) 16, 17