yes it can be done. I have managed to put some assets (audio files) in core and used in main. Finally I returned it as Byte array; I am sure it can be played around to bind more.
Here is my code which I used
public byte[] GetApplicationResource(ApplicationResourceName resourceName)
{
string resourcePath;
switch (resourceName)
{
case ApplicationResourceName.AudioChord:
resourcePath = AppConstants.ResourceNameAudioChord;
break;
default:
throw new ArgumentOutOfRangeException("resourceName");
}
var assembly = Assembly.GetExecutingAssembly();
using (var stream = assembly.GetManifestResourceStream(resourcePath))
{
// sanity check
if (stream != null)
{
using (var memoryStream = new MemoryStream())
{
stream.CopyTo(memoryStream);
return memoryStream.ToArray();
}
}
}
return null;
}
Hope that helps