[mono-android] Drawables with a space in the filename?

Tom Opgenorth tom at opgenorth.net
Thu Jan 19 00:08:55 UTC 2012


To answer the first question: spaces are not legal characters for an
Android resource.

I can't speak for Xamarin, but I would guess that it is possible to
modify the M4A MSBuild task to remove the spaces before call aapt, but
don't know that is something that should be added to the feature set.
I suppose if enough people asked for it, it would be added....

On Wed, Jan 18, 2012 at 16:07, Tossing, Chris <chris.tossing at usa.g4s.com> wrote:
> Is it possible to use drawables with spaces in the filename?  I have an
> image library that I would prefer to use as it is (has spaces in the
> filenames).
>
>
>
> When I try to include a link to one of those files and set the Build Action
> to AndroidResource, it comes back with:
>
>
>
>
>
> C:\Program Files
> (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(392,2): error MSB6006:
> "aapt.exe" exited with code 1.
>
>
>
>
>
> Is there any way to remove any spaces from the filenames of AndroidResource
> files before running aapt.exe?
>
>
>
> Thank you,
>
>
>
> Chris Tossing
>
> Software Engineer
>
> G4S Technology Software Solutions LLC
>
> Direct Dial:      +1 (781) 457-0779
>
> Cell:                +1 (847) 942-0359
>
> chris.tossing at usa.g4s.com
>
> www.1f.com
>
> 21 North Avenue, Burlington, Massachusetts 01803 USA
>
>
>
> P Please consider the environment before printing this email
>
>
>
>
> ________________________________
> The details of this company are as follows:
> G4S Technology Limited, Registered Office: Challenge House, International
> Drive, Tewkesbury, Gloucestershire GL20 8UQ, Registered in England No.
> 2382338.
>
> This communication may contain information which is confidential, personal
> and/or privileged.
>
> It is for the exclusive use of the intended recipient(s).
> If you are not the intended recipient(s), please note that any distribution,
> forwarding, copying or use of this communication or the information in it is
> strictly prohibited.
>
> Any personal views expressed in this e-mail are those of the individual
> sender and the company does not endorse or accept responsibility for them.
>
> Prior to taking any action based upon this e-mail message, you should seek
> appropriate confirmation of its authenticity.
>
> This e-mail has been scanned for all viruses by MessageLabs.
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
http://www.opgenorth.net


More information about the Monodroid mailing list