ProjectCollection.UnloadProject Method (Project)

 

Removes the given project from the project collection.

Namespace:   Microsoft.Build.Evaluation
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

public void UnloadProject(
	Project project
)

Parameters

project
Type: Microsoft.Build.Evaluation.Project

The project to remove.

The host should call this method when it no longer needs the project.

Throws InvalidOperationException if the given project is not present in the project collection.

.NET Framework
Available since 4.0
Return to top
Show: