ProjectCollection.UnloadProject Method (Project)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Removes the given project from the project collection.

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

public void UnloadProject(
	Project 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