static void SetSolutionManaged(bool shouldActivate, GitItem item, IVisualGitSccService scc) { if (shouldActivate) scc.RegisterAsPrimarySccProvider(); scc.SetProjectManaged(null, true); item.MarkDirty(); // This clears the solution settings cache to retrieve its properties }