From 002d7dba30d466816b60d70e316636f86724e591 Mon Sep 17 00:00:00 2001
From: lbsa71
Date: Tue, 27 Mar 2007 19:47:23 +0000
Subject: * Fixed yet another project ref fuck-up in Prebuild.
---
Prebuild/src/Core/Targets/NAntTarget.cs | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
(limited to 'Prebuild/src/Core')
diff --git a/Prebuild/src/Core/Targets/NAntTarget.cs b/Prebuild/src/Core/Targets/NAntTarget.cs
index bd366dc..242bb9c 100644
--- a/Prebuild/src/Core/Targets/NAntTarget.cs
+++ b/Prebuild/src/Core/Targets/NAntTarget.cs
@@ -83,10 +83,10 @@ namespace Prebuild.Core.Targets
if(solution.ProjectsTable.ContainsKey(refr.Name))
{
ProjectNode project = (ProjectNode)solution.ProjectsTable[refr.Name];
- string fileRef = FindFileReference(refr.Name, project);
- string finalPath = Helper.NormalizePath(Helper.MakeFilePath(project.FullPath + "/${build.dir}/", refr.Name, "dll"), '/');
- ret += finalPath;
- return ret;
+
+ string finalPath = Helper.NormalizePath( ((ReferencePathNode) project.ReferencePaths[0]).Path + refr.Name + ".dll", '/');
+
+ return finalPath;
}
else
{
@@ -316,7 +316,8 @@ namespace Prebuild.Core.Targets
ss.WriteLine(" ");
foreach(ReferenceNode refr in project.References)
{
- ss.WriteLine(" ", '/'));
+ string path = Helper.NormalizePath(Helper.MakePathRelativeTo(project.FullPath, BuildReference(solution, refr)), '/');
+ ss.WriteLine(" " );
}
ss.WriteLine(" ");
--
cgit v1.1