[mono-android] Library resources

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Sat Dec 22 20:22:28 UTC 2012


Sorry for late reply, I had been stuck at machine trouble (and away from 
work now). Anyways...

Aren't you trying to add files to some existing library project that was 
created prior to 4.2.8? It won't work, because 4.2.8 adds some project 
properties that are required for the resource build steps.

If you want to enable resource builds in such old projects, add some 
project properties in your .csproj like this (line 12 and 13 will do the 
trick):
https://github.com/xamarin/monodroid-samples/blob/master/ManagedAndroidResourceTest/ManagedAndroidResourceLibrary/ManagedAndroidResourceLibrary.csproj#L12

Atsushi Eno

mario federici wrote:
> Thank you, Eno, for your prompt response.
>
> I have an other question: I develop my application with VisualStudio; 
> I've not been able to change my source to work like yours (even 
> tampering directly with a text editor in the csproj file).  That 
> because I found no way to generate ResourceDesigner.cs (while your 
> example did).
> My solution was to copy your library project, rename it, change the 
> namespace and so on. In that way I've got a working solution.
>
> So, in VisualStudio, what's the trick to make Resgen working?
>
> Regards,
>
>    Mario
>
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid



More information about the Monodroid mailing list