private void OverwriteProjectItemTextContent(ProjectItem item, string text) { var path = item.GetFullPath(); SolutionManager.EnsureCheckedOutIfExists(path); _fileSystem.WriteAllText(path, text); }