Partilhar via


Engine.UnloadProject(Project) Method

Definition

Removes a project object from our hash table of loaded projects. After this is called, it is illegal to attempt to do anything else with the Project, so don't call it unless you are completely done with the project.

IDEs should call this when they're done with a particular project. This causes us to unhook the project from the Engine object, so that there will be no more references to the project, and the garbage collector can clean up.

public:
 void UnloadProject(Microsoft::Build::BuildEngine::Project ^ project);
public void UnloadProject (Microsoft.Build.BuildEngine.Project project);
member this.UnloadProject : Microsoft.Build.BuildEngine.Project -> unit
Public Sub UnloadProject (project As Project)

Parameters

project
Project

Applies to