protected void SetContentEntries(StreamWriter writer) { foreach (VisualStudioDirectory directory in content) { string contentDirectoryGuid = directory.Guid.ToString("B").ToUpperInvariant(); writer.WriteLine("Project(\"{0}\") = \"{1}\", \"{1}\", \"{2}\"", VisualStudioDirectory.DirectoryGuid.ToGuid().ToString("B").ToUpperInvariant(), directory.Name, contentDirectoryGuid); if (directory.Files.Count > 0) { writer.WriteLine(" ProjectSection(SolutionItems) = preProject"); foreach (FileDescriptor file in directory.Files) { writer.WriteLine(" {0} = {0}", file.GetRelativePath(directory.Location)); } writer.WriteLine(" EndProjectSection"); } writer.WriteLine("EndProject"); } }