From b615e7d6d755af31809c88a14c21e07a9a8fa6c8 Mon Sep 17 00:00:00 2001 From: "Frank A. Krueger" Date: Tue, 13 Mar 2018 16:04:31 -0700 Subject: [PATCH] Find Ooui.dll even if it's linked out --- Ooui.Wasm.Build.Tasks/BuildDistTask.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Ooui.Wasm.Build.Tasks/BuildDistTask.cs b/Ooui.Wasm.Build.Tasks/BuildDistTask.cs index 2ab95d0..eb4dabc 100644 --- a/Ooui.Wasm.Build.Tasks/BuildDistTask.cs +++ b/Ooui.Wasm.Build.Tasks/BuildDistTask.cs @@ -100,11 +100,12 @@ namespace Ooui.Wasm.Build.Tasks } List linkedAsmPaths; + List refpaths; void LinkAssemblies () { var references = ReferencePath.Split (';').Select (x => x.Trim ()).Where (x => x.Length > 0).ToList (); - var refpaths = new List (); + refpaths = new List (); foreach (var r in references) { var name = Path.GetFileName (r); if (bclAssemblies.ContainsKey (name)) { @@ -221,7 +222,7 @@ namespace Ooui.Wasm.Build.Tasks void ExtractClientJs () { - var oouiPath = linkedAsmPaths.FirstOrDefault (x => Path.GetFileName (x).Equals ("Ooui.dll", StringComparison.InvariantCultureIgnoreCase)); + var oouiPath = refpaths.FirstOrDefault (x => Path.GetFileName (x).Equals ("Ooui.dll", StringComparison.InvariantCultureIgnoreCase)); if (oouiPath == null) { Log.LogError ("Ooui.dll not included in the project"); return;