Browse Source

Removed duplicate concatination

The type system concatenates the target to references internally.
Yoh Deadfall 3 years ago
parent
commit
2ab262136c
1 changed files with 3 additions and 3 deletions
  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;