[mono-android] Load resources on a custom library
Amir Waldman
amirw2k at gmail.com
Thu Mar 17 11:40:08 EDT 2011
You mean add a link to the file...
That's a nice idea actually. However, since I have different projects that
reference the same class library, it wouldn't work too well...
I've implemented reflection to do the job. It's an ugly design and I'd much
rather having the resources in the class library itself.
Do you have any plans/timeline for adding this feature to MonoDroid?
Thanks,
Amir
-----Original Message-----
From: monodroid-bounces at lists.ximian.com
[mailto:monodroid-bounces at lists.ximian.com] On Behalf Of Jonathan Pryor
Sent: Thursday, March 17, 2011 5:17 PM
To: monodroid at lists.ximian.com
Subject: Re: [mono-android] Load resources on a custom library
On Mar 17, 2011, at 10:59 AM, Amir Waldman wrote:
> That would create a circular reference.
>
> The class library is being referenced by the main assembly and is used by
> other assemblies as well.
I didn't say to reference the _assembly_. I said to reference the _source_.
For example, in Library.csproj:
<ItemGroup>
<Compile
Include="..\AppProject\Resources\Resources.Designer.cs">
<Link>Resources\Resources.Designer.cs</Link>
</Compile>
</ItemGroup>
The compiler doesn't care about "circular references" for source code.
- Jon
_______________________________________________
Monodroid mailing list
Monodroid at lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
More information about the Monodroid
mailing list