You'll want to add them as BuildAction = BundleResource

You can add these files to either the binding project or the app project,
it doesn't really matter. Although, if you add it to the binding project,
you'll need the updated MSBuild targets from
http://files.xamarin.com/~jeff/BindingProjectBuildTargets.zip (extract this
in /Library/Frameworks/Mono.framework/External/).

I forgot you'd need this yesterday when I replied.

Hope that helps,

Jeff

On Mon, Aug 6, 2012 at 7:58 PM, Shawn Castrianni <[email protected]> wrote:

> that was also one of my questions. do we do this to the binding project
> that produces the dll or the top level application project that produces
> the iap?
>
> ___
> Shawn
>
> On Aug 6, 2012, at 6:53 PM, Alex Soto <[email protected]> wrote:
>
> Ok let me see if I understood correctly
>
> We manually create a folder named "Resources" in our MT binding project
>
> Then we add the xName.bundle to that folder and any resource files
> included on the framework
>
> Then We compile and everything gets added to the bindingfile.dll file and
> that it.
>
> Do we have to mark the files we add to "Resources" folder as "Content" or
> Resource??
>
> Thanks Jeff
>
> Alex
>
> El 06/08/2012, a las 04:08 p.m., Jeff Stedfast <[email protected]>
> escribió:
>
> Hi Shawn,
>
> I recently added feature which adds a "Resources" folder where you can add
> things like the ArcGIS.bundle files.
>
> I think it landed in MonoDevelop 3.0.4 (you'll have to create the
> Resources folder manually, though)
>
> Jeff
>
> On Mon, Aug 6, 2012 at 3:50 PM, spcware <[email protected]> wrote:
>
>> I am not sure I follow your reply.  I was giving multiple options, yet you
>> said it all sounded correct.
>>
>> Let me add some specifics.  I am trying to use the ESRI ArcGIS thirdparty
>> framework.  I have already started writing the ApiDefinition.cs file to
>> wrap
>> the Objective-C code in C# bindings.  It is working well.  However, the
>> ArcGIS ships as a framework and a Resources directory containing both a
>> ArcGIS.bundle and Info.plist file.  In normal Objective-C xcode world,
>> they
>> state to add the ArcGIS.bundle file to the xcode project and add a
>> dependency on the ArcGIS.framework.  I know that the code in the
>> ArcGIS.framework uses resources from the ArcGIS.bundle when rendering its
>> UI.  So the question is how to get those resources available to the
>> wrapped
>> ArcGIS.dll that I create?
>>
>> I tried added the ArcGIS.bundle (really a directory) to my top level ios
>> Monotouch application project as a directory.  That helped a little in
>> that
>> my app can now see some of the resources, but not all.  The ESRI map
>> component is supposed to have "esri" in the bottom left corner of the
>> MapView which is just one of the images in the ArcGIS.bundle.  It is NOT
>> finding this image, however, it is finding the GpsLocation.png image used
>> to
>> show the current device location on the map.  I am confused as to how some
>> of the images in the ArcGIS.bundle can be found, yet some cannot.  Also,
>> do
>> I have to use the Info.plist file at all??
>>
>>
>>
>> --
>> View this message in context:
>> http://monotouch.2284126.n4.nabble.com/How-to-write-bindings-for-a-framework-tp4656293p4656400.html
>> Sent from the MonoTouch mailing list archive at Nabble.com.
>> _______________________________________________
>> MonoTouch mailing list
>> [email protected]
>> http://lists.ximian.com/mailman/listinfo/monotouch
>>
>
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to