File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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+
25using System . Collections . Generic ;
36using System . Linq ;
4- using System . Text ;
5- using System . Threading . Tasks ;
67using Cake . Scripting . Reflection . Emitters ;
78using Mono . Cecil ;
89
You can’t perform that action at this time.
0 commit comments