Skip to content

Commit

Permalink
Merge branch 'hotfix/0.9.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Dec 11, 2021
2 parents 68c579e + 32def1f commit 3900618
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Cake.Scripting/CodeGen/CakeScriptGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ public CakeScript Generate(FileChange fileChange)
// Find aliases
_log.Verbose("Finding aliases...");
var aliases = new List<CakeScriptAlias>();
foreach (var reference in references)
foreach (var reference in references.Select(_fileSystem.GetFile))
{
if (_fileSystem.Exist(reference))
if (reference.Exists && reference.IsClrAssembly())
{
aliases.AddRange(_aliasFinder.FindAliases(reference));
aliases.AddRange(_aliasFinder.FindAliases(reference.Path));
}
}

Expand Down
7 changes: 4 additions & 3 deletions src/Cake.Scripting/Reflection/GenericParameterSignature.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cake.Scripting.Reflection.Emitters;
using Mono.Cecil;

Expand Down

0 comments on commit 3900618

Please sign in to comment.