Hi All,
I have a large multi-solution project and the solution task does not build
properly if it is called within a nested <nant> task because the full path
to the solution file is not used. Patch attached.
Cheers,
Eddie
Index: src/NAnt.VSNet/Solution.cs
===================================================================
RCS file: /cvsroot/nant/nant/src/NAnt.VSNet/Solution.cs,v
retrieving revision 1.19
diff -u -r1.19 Solution.cs
--- src/NAnt.VSNet/Solution.cs 3 Nov 2003 09:46:04 -0000 1.19
+++ src/NAnt.VSNet/Solution.cs 3 Nov 2003 22:03:50 -0000
@@ -51,13 +51,13 @@
string fileContents;
- using (StreamReader sr = new StreamReader(solutionFileName)) {
+ using (StreamReader sr = new
StreamReader(_solutionTask.SolutionFile)) {
fileContents = sr.ReadToEnd();
}
Regex re = new
Regex(@"Project\(\""(?<package>\{.*?\})\"".*?\""(?<name>.*?)\"".*?\""(?<proj
ect>.*?)\"".*?\""(?<guid>.*?)\""");
MatchCollection mc = re.Matches(fileContents);
- FileInfo fiSolution = new FileInfo(solutionFileName);
+ FileInfo fiSolution = new FileInfo(_solutionTask.SolutionFile);
foreach (Match m in mc) {
string project = m.Groups["project"].Value;
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers