Skip to content

Commit

Permalink
Use the same GUID for solution items (#291)
Browse files Browse the repository at this point in the history
Fixes #287
  • Loading branch information
jeffkl authored Nov 2, 2021
1 parent cb57e28 commit f6ce581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.VisualStudio.SlnGen/SlnFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ internal void Save(string rootPath, TextWriter writer, bool useFolders, bool col

if (SolutionItems.Count > 0)
{
writer.WriteLine($@"Project(""{SlnFolder.FolderProjectTypeGuidString}"") = ""Solution Items"", ""Solution Items"", ""{Guid.NewGuid().ToSolutionString()}"" ");
writer.WriteLine($@"Project(""{SlnFolder.FolderProjectTypeGuidString}"") = ""Solution Items"", ""Solution Items"", ""{{B283EBC2-E01F-412D-9339-FD56EF114549}}"" ");
writer.WriteLine(" ProjectSection(SolutionItems) = preProject");
foreach (string solutionItem in SolutionItems.Select(i => i.ToRelativePath(rootPath).ToSolutionPath()))
{
Expand Down

0 comments on commit f6ce581

Please sign in to comment.