diff options
Diffstat (limited to 'Prebuild/src/Core/Targets')
-rw-r--r-- | Prebuild/src/Core/Targets/NAntTarget.cs | 11 |
1 files changed, 6 insertions, 5 deletions
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 | |||
83 | if(solution.ProjectsTable.ContainsKey(refr.Name)) | 83 | if(solution.ProjectsTable.ContainsKey(refr.Name)) |
84 | { | 84 | { |
85 | ProjectNode project = (ProjectNode)solution.ProjectsTable[refr.Name]; | 85 | ProjectNode project = (ProjectNode)solution.ProjectsTable[refr.Name]; |
86 | string fileRef = FindFileReference(refr.Name, project); | 86 | |
87 | string finalPath = Helper.NormalizePath(Helper.MakeFilePath(project.FullPath + "/${build.dir}/", refr.Name, "dll"), '/'); | 87 | string finalPath = Helper.NormalizePath( ((ReferencePathNode) project.ReferencePaths[0]).Path + refr.Name + ".dll", '/'); |
88 | ret += finalPath; | 88 | |
89 | return ret; | 89 | return finalPath; |
90 | } | 90 | } |
91 | else | 91 | else |
92 | { | 92 | { |
@@ -316,7 +316,8 @@ namespace Prebuild.Core.Targets | |||
316 | ss.WriteLine(" </lib>"); | 316 | ss.WriteLine(" </lib>"); |
317 | foreach(ReferenceNode refr in project.References) | 317 | foreach(ReferenceNode refr in project.References) |
318 | { | 318 | { |
319 | ss.WriteLine(" <include name=\"{0}", Helper.NormalizePath(Helper.MakePathRelativeTo(project.FullPath, BuildReference(solution, refr))+"\" />", '/')); | 319 | string path = Helper.NormalizePath(Helper.MakePathRelativeTo(project.FullPath, BuildReference(solution, refr)), '/'); |
320 | ss.WriteLine(" <include name=\""+ path + "\" />" ); | ||
320 | } | 321 | } |
321 | ss.WriteLine(" </references>"); | 322 | ss.WriteLine(" </references>"); |
322 | 323 | ||