Skip to content

Commit

Permalink
Change ProjectConfigurationPlatforms to be postSolution (#73)
Browse files Browse the repository at this point in the history
When running SlnGen on a repository with a mix of .Net Standard and .Net framework the solution file generated would hang on load. After binary searching the changes I found that the solution file generated by Visual Studio has ProjectConfigurationPlatforms as postSolution. Making this one change causes the solution to properly load. 

Fixes #71
  • Loading branch information
johnthcall authored and jeffkl committed Nov 5, 2019
1 parent 98d14d1 commit 24bb255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SlnGen.Build.Tasks/Internal/SlnFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void Save(TextWriter writer, bool useFolders)

writer.WriteLine(" EndGlobalSection");

writer.WriteLine(" GlobalSection(ProjectConfigurationPlatforms) = preSolution");
writer.WriteLine(" GlobalSection(ProjectConfigurationPlatforms) = postSolution");
foreach (SlnProject project in _projects)
{
foreach (string configuration in allConfigurations)
Expand Down Expand Up @@ -193,4 +193,4 @@ public void Save(TextWriter writer, bool useFolders)
writer.WriteLine("EndGlobal");
}
}
}
}

0 comments on commit 24bb255

Please sign in to comment.