Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
workaround for "bundling resource into ns2.0 with xamarin.ios10 doesn…
Browse files Browse the repository at this point in the history
…'t work"
  • Loading branch information
EgorBo committed Dec 3, 2018
1 parent d765273 commit 050fdf9
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
4 changes: 0 additions & 4 deletions Bindings/Forms/UrhoSharp.Forms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@

<!-- iOS -->
<ItemGroup Condition="$(TargetFramework) == 'xamarin.ios10'">
<BundleResource Update="..\..\Urho3D\CoreData.pak">
<Link>CoreData.pak</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</BundleResource>
<None Include="..\..\Bin\iOS\Urho.framework.zip">
<Link>Urho.framework.zip</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down
3 changes: 0 additions & 3 deletions Bindings/NetStandard/UrhoSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@
<Compile Include="..\iOS\UrhoSurface.cs" />
<Compile Include="..\iOS\Urho.framework.linkwith.cs" />
<ObjcBindingNativeFramework Include="..\..\Bin\iOS\Urho.framework" />
<BundleResource Update="..\..\Urho3D\CoreData.pak">
<Link>Resources\CoreData.pak</Link>
</BundleResource>
</ItemGroup>

<!-- UWP -->
Expand Down
1 change: 1 addition & 0 deletions Nuget/Urho.Forms.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<file src="../Bin/Android/armeabi/libmono-urho.so" target="native/Android/armeabi/libmono-urho.so" />

<!--iOS-->
<file src="../Nuget/iOS/UrhoSharp.Forms.targets" target="build/xamarin.ios10" />
<file src="../Bin/UrhoSharp.Forms/UrhoSharp.Forms.dll" target="lib/Xamarin.iOS10/UrhoSharp.Forms.dll" />
<file src="../docs/Urho.XML" target="lib/Xamarin.iOS10/UrhoSharp.Forms.XML" />

Expand Down
1 change: 1 addition & 0 deletions Nuget/Urho.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<file src="../Bin/Android/armeabi/libmono-urho.so" target="native/Android/armeabi/libmono-urho.so" />

<!--iOS-->
<file src="../Nuget/iOS/UrhoSharp.targets" target="build/xamarin.ios10" />
<file src="../Bin/UrhoSharp/UrhoSharp.dll" target="lib/Xamarin.iOS10/UrhoSharp.dll" />
<file src="../docs/Urho.XML" target="lib/Xamarin.iOS10/UrhoSharp.XML" />

Expand Down
7 changes: 7 additions & 0 deletions Nuget/iOS/UrhoSharp.Forms.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<BundleResource Include="$(MSBuildThisFileDirectory)\..\..\native\CoreData.pak">
<Link>Resources\CoreData.pak</Link>
</BundleResource>
</ItemGroup>
</Project>
7 changes: 7 additions & 0 deletions Nuget/iOS/UrhoSharp.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<BundleResource Include="$(MSBuildThisFileDirectory)\..\..\native\CoreData.pak">
<Link>Resources\CoreData.pak</Link>
</BundleResource>
</ItemGroup>
</Project>

0 comments on commit 050fdf9

Please sign in to comment.