From d8b51cc3a83358cd6028b19e4175eecd891b8f1c Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Mon, 23 Feb 2009 10:38:25 +0000 Subject: * This should fix the 'Solution Folder' annoyance on express versions. --- Prebuild/src/Core/Targets/VSGenericTarget.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Prebuild/src') diff --git a/Prebuild/src/Core/Targets/VSGenericTarget.cs b/Prebuild/src/Core/Targets/VSGenericTarget.cs index 60cc803..84f1df5 100644 --- a/Prebuild/src/Core/Targets/VSGenericTarget.cs +++ b/Prebuild/src/Core/Targets/VSGenericTarget.cs @@ -650,7 +650,10 @@ namespace Prebuild.Core.Targets private void WriteSolutionFiles(SolutionNode solution, StreamWriter ss) { - WriteProject(ss, "Folder", solution.Guid, "Solution Files", "Solution Files", solution.Files); + if (solution.Files != null && solution.Files.Count > 0) + { + WriteProject(ss, "Folder", solution.Guid, "Solution Files", "Solution Files", solution.Files); + } } private void WriteEmbeddedSolution(StreamWriter writer, SolutionNode embeddedSolution) -- cgit v1.1