I am getting System.IO.FileNotFoundException
and I am not sure why. It looks
System.IO.FileNotFoundException: 'Could not load file or assembly 'Pixelation Tool.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.'
public static T LoadFromFile<T>(string name) where T : IName
{
XmlSerializer xml = new XmlSerializer(typeof(T));
(new FileInfo(filePath + name + ".mox")).Directory.Create();
FileStream fs = new FileStream(filePath + name + ".mox", FileMode.OpenOrCreate);
try
{
return (T)xml.Deserialize(fs);
}
finally
{
fs.Close();
}
}
it is calling it at the 1st line :
XmlSerializer xml = new XmlSerializer(typeof(T));