예제 #1
0
        /// <summary>
        ///     Called when [closing project].
        /// </summary>
        /// <param name="hierarchy">The hierarchy.</param>
        public void OnClosingProject(IVsHierarchy hierarchy)
        {
            if (!_projectCache.TryGetProjectByHierarchy(hierarchy, out var project))
            {
                return;
            }

            _projectCache.Remove(project);
            Target.OnClosingProject(project.Name);
        }
예제 #2
0
 public bool UnloadProject(Project Project)
 {
     return(ProjectCache.Remove(Project));
 }