瀏覽代碼

Merge pull request #8400 from YohDeadfall/duplicate-concat

Removed duplicate concatentation in the build task
Nikita Tsukanov 3 年之前
父節點
當前提交
67db0acac7
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs

+ 3 - 3
src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs

@@ -49,9 +49,9 @@ namespace Avalonia.Build.Tasks
             string projectDirectory,
             string output, bool verifyIl, MessageImportance logImportance, string strongNameKey, bool patchCom, bool skipXamlCompilation, bool debuggerLaunch)
         {
-            var typeSystem = new CecilTypeSystem(references
-                .Where(r => !r.ToLowerInvariant().EndsWith("avalonia.build.tasks.dll"))
-                .Concat(new[] { input }), input);
+            var typeSystem = new CecilTypeSystem(
+                references.Where(r => !r.ToLowerInvariant().EndsWith("avalonia.build.tasks.dll")),
+                input);
 
             var asm = typeSystem.TargetAssemblyDefinition;