Skip to content

Commit 3900618

Browse files
committed
Merge branch 'hotfix/0.9.1'
2 parents 68c579e + 32def1f commit 3900618

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/Cake.Scripting/CodeGen/CakeScriptGenerator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ public CakeScript Generate(FileChange fileChange)
126126
// Find aliases
127127
_log.Verbose("Finding aliases...");
128128
var aliases = new List<CakeScriptAlias>();
129-
foreach (var reference in references)
129+
foreach (var reference in references.Select(_fileSystem.GetFile))
130130
{
131-
if (_fileSystem.Exist(reference))
131+
if (reference.Exists && reference.IsClrAssembly())
132132
{
133-
aliases.AddRange(_aliasFinder.FindAliases(reference));
133+
aliases.AddRange(_aliasFinder.FindAliases(reference.Path));
134134
}
135135
}
136136

src/Cake.Scripting/Reflection/GenericParameterSignature.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
25
using System.Collections.Generic;
36
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
67
using Cake.Scripting.Reflection.Emitters;
78
using Mono.Cecil;
89

0 commit comments

Comments
 (0)