* Rebuildt Prebuild.exe to fix vs2008 not creating Solution

* Wrapped solution streamwrites in using for great justice
0.6.0-stable
lbsa71 2008-11-08 12:15:28 +00:00
parent 0fc57de7de
commit c0d69d0ec7
2 changed files with 83 additions and 82 deletions

View File

@ -719,8 +719,8 @@ namespace Prebuild.Core.Targets
kernel.Log.Write(""); kernel.Log.Write("");
string solutionFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "sln"); string solutionFile = Helper.MakeFilePath(solution.FullPath, solution.Name, "sln");
StreamWriter ss = new StreamWriter(solutionFile); using (StreamWriter ss = new StreamWriter(solutionFile))
{
kernel.CurrentWorkingDirectory.Push(); kernel.CurrentWorkingDirectory.Push();
Helper.SetCurrentDir(Path.GetDirectoryName(solutionFile)); Helper.SetCurrentDir(Path.GetDirectoryName(solutionFile));
@ -812,6 +812,7 @@ namespace Prebuild.Core.Targets
ss.WriteLine("EndGlobal"); ss.WriteLine("EndGlobal");
} }
}
kernel.CurrentWorkingDirectory.Pop(); kernel.CurrentWorkingDirectory.Pop();
} }

Binary file not shown.