Find Ooui.dll even if it's linked out

This commit is contained in:
Frank A. Krueger 2018-03-13 16:04:31 -07:00
parent b45015541b
commit b615e7d6d7
No known key found for this signature in database
GPG Key ID: 0471C67474FFE664
1 changed files with 3 additions and 2 deletions

View File

@ -100,11 +100,12 @@ namespace Ooui.Wasm.Build.Tasks
} }
List<string> linkedAsmPaths; List<string> linkedAsmPaths;
List<string> refpaths;
void LinkAssemblies () void LinkAssemblies ()
{ {
var references = ReferencePath.Split (';').Select (x => x.Trim ()).Where (x => x.Length > 0).ToList (); var references = ReferencePath.Split (';').Select (x => x.Trim ()).Where (x => x.Length > 0).ToList ();
var refpaths = new List<string> (); refpaths = new List<string> ();
foreach (var r in references) { foreach (var r in references) {
var name = Path.GetFileName (r); var name = Path.GetFileName (r);
if (bclAssemblies.ContainsKey (name)) { if (bclAssemblies.ContainsKey (name)) {
@ -221,7 +222,7 @@ namespace Ooui.Wasm.Build.Tasks
void ExtractClientJs () 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) { if (oouiPath == null) {
Log.LogError ("Ooui.dll not included in the project"); Log.LogError ("Ooui.dll not included in the project");
return; return;