public void UnloadProject()
        {
            var solution = Solution.GetService(typeof(SVsSolution)) as IVsSolution4;

            var projectGuid = Solution.GetProjectGuid(ProjectHierarchy);

            solution?.UnloadProject(ref projectGuid, (int)_VSProjectUnloadStatus.UNLOADSTATUS_UnloadedByUser);
        }
Example #2
0
        public ProjectFile([NotNull] Solution solution, [NotNull] Project project)
        {
            _solution = solution;
            _project  = project;

            FileTime = File.GetLastWriteTime(project.FullName);

            _projectGuid = solution.GetProjectGuid(project.ProjectHierarchy);
        }