Fix platform test project

This commit is contained in:
Frank A. Krueger 2017-07-07 12:51:00 -07:00
parent 2e5241f678
commit f9cf53debc
2 changed files with 8 additions and 0 deletions

View File

@ -69,6 +69,8 @@ namespace Ooui
// System.Console.WriteLine(" {0}", n);
// }
using (var s = asm.GetManifestResourceStream ("Ooui.Client.js")) {
if (s == null)
throw new Exception ("Missing Client.js");
using (var r = new StreamReader (s)) {
clientJsBytes = Encoding.UTF8.GetBytes (r.ReadToEnd ());
}

View File

@ -202,5 +202,11 @@
<Link>Tests\UITests.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="..\..\Ooui\Client.js">
<Link>Client.js</Link>
<LogicalName>Ooui.Client.js</LogicalName>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
</Project>