diff options
Diffstat (limited to 'Prebuild/src/Core/Targets/MakefileTarget.cs')
-rw-r--r-- | Prebuild/src/Core/Targets/MakefileTarget.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Prebuild/src/Core/Targets/MakefileTarget.cs b/Prebuild/src/Core/Targets/MakefileTarget.cs index 86676d0..54046dd 100644 --- a/Prebuild/src/Core/Targets/MakefileTarget.cs +++ b/Prebuild/src/Core/Targets/MakefileTarget.cs | |||
@@ -24,8 +24,6 @@ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY O | |||
24 | #endregion | 24 | #endregion |
25 | 25 | ||
26 | using System; | 26 | using System; |
27 | using System.Collections; | ||
28 | using System.Collections.Specialized; | ||
29 | using System.IO; | 27 | using System.IO; |
30 | using System.Text.RegularExpressions; | 28 | using System.Text.RegularExpressions; |
31 | 29 | ||
@@ -110,7 +108,7 @@ namespace Prebuild.Core.Targets | |||
110 | { | 108 | { |
111 | string path; | 109 | string path; |
112 | // Project references change with configurations. | 110 | // Project references change with configurations. |
113 | if (solution.ProjectsTable.Contains(refr.Name)) | 111 | if (solution.ProjectsTable.ContainsKey(refr.Name)) |
114 | continue; | 112 | continue; |
115 | path = FindFileReference(refr.Name, project); | 113 | path = FindFileReference(refr.Name, project); |
116 | if (path != null) | 114 | if (path != null) |
@@ -220,7 +218,7 @@ namespace Prebuild.Core.Targets | |||
220 | } | 218 | } |
221 | // Dependencies on other projects. | 219 | // Dependencies on other projects. |
222 | foreach (ReferenceNode refr in project.References) | 220 | foreach (ReferenceNode refr in project.References) |
223 | if (solution.ProjectsTable.Contains(refr.Name)) | 221 | if (solution.ProjectsTable.ContainsKey(refr.Name)) |
224 | { | 222 | { |
225 | ProjectNode refProj = (ProjectNode)solution.ProjectsTable[refr.Name]; | 223 | ProjectNode refProj = (ProjectNode)solution.ProjectsTable[refr.Name]; |
226 | if (ProjectClashes(refProj)) | 224 | if (ProjectClashes(refProj)) |
@@ -256,7 +254,7 @@ namespace Prebuild.Core.Targets | |||
256 | // Build references to other projects. Now that sux. | 254 | // Build references to other projects. Now that sux. |
257 | // We have to reference the other project in the same conf. | 255 | // We have to reference the other project in the same conf. |
258 | foreach (ReferenceNode refr in project.References) | 256 | foreach (ReferenceNode refr in project.References) |
259 | if (solution.ProjectsTable.Contains(refr.Name)) | 257 | if (solution.ProjectsTable.ContainsKey(refr.Name)) |
260 | { | 258 | { |
261 | ProjectNode refProj; | 259 | ProjectNode refProj; |
262 | refProj = (ProjectNode)solution.ProjectsTable[refr.Name]; | 260 | refProj = (ProjectNode)solution.ProjectsTable[refr.Name]; |
@@ -274,7 +272,7 @@ namespace Prebuild.Core.Targets | |||
274 | { | 272 | { |
275 | string outPath, srcPath, destPath; | 273 | string outPath, srcPath, destPath; |
276 | outPath = Helper.NormalizePath((string)conf.Options["OutputPath"]); | 274 | outPath = Helper.NormalizePath((string)conf.Options["OutputPath"]); |
277 | if (solution.ProjectsTable.Contains(refr.Name)) | 275 | if (solution.ProjectsTable.ContainsKey(refr.Name)) |
278 | { | 276 | { |
279 | ProjectNode refProj; | 277 | ProjectNode refProj; |
280 | refProj = (ProjectNode)solution.ProjectsTable[refr.Name]; | 278 | refProj = (ProjectNode)solution.ProjectsTable[refr.Name]; |