hi,
I want to read a xml file in the shared project from my forms app but I cant get it to work. This is my code:
var assembly = typeof(ContentPage).GetTypeInfo().Assembly;
Stream stream = assembly.GetManifestResourceStream("iBridge_RandstadMetaApp.Markup.xml");
Markup m = new Markup();
using (var reader = new System.IO.StreamReader(stream))
{
Debug.WriteLine("start xml");
var serializer = new XmlSerializer(typeof(Markup));
m = (Markup)serializer.Deserialize(reader);
}
public class Markup
{
public string BasicHexColor { get; set; }
public string TextColor { get; set; }
public Markup ()
{
}
}