0

I'm using this link to implement webkit to my app, in sample of the article, they copied index.html file inside both Android and iOS platforms folders (iOS: /Content/index.html, Android: /Assets/Content/index.html), my project is more complicated and has about 2000 files and many folders related to web side (instead of that single index.html file), how can I place my web side files into Xamarin.Forms main project folder and in compile time, they be copied to their platform specific folder? For android it seems that they should be in Asset folder.

Alireza Akbari
  • 2,153
  • 2
  • 28
  • 53

1 Answers1

0

You can use MSBuild - FilesToMove.

Also you will need to update your android and iOS project files to include them as resource or assets. For e.g:

<ItemGroup>
   <!-- your normal project content -->
   <Content Include="MainActivity.cs" />

   <!-- your static content you like to publish -->
   <AndroidResource Include="web\**\*.*"  />
</ItemGroup>
Sharada Gururaj
  • 13,471
  • 1
  • 22
  • 50