Browse Source

Removed duplicate concatination

The type system concatenates the target to references internally.
pull/8400/head
Yoh Deadfall 4 years ago
parent
commit
2ab262136c
  1. 6
      src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs

6
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;

Loading…
Cancel
Save