Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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


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

Supported in: 4.6, 4.5, 4
© 2015 Microsoft