YamlDotNet
YamlDotNet copied to clipboard
YamlDotNet does not write accurately equal to yaml being loaded
Example input file any scene from Unity3D. Example code:
var input = new StringReader(File.ReadAllText("Scene1.unity"));
var yaml = new YamlStream();
yaml.Load(input);
var tw = File.CreateText(sc.path + ".yaml");
yaml.Save(tw,false);
Verification shell command:
diff Scene1.unity Scene1.unity.yaml
^ got totally different result
Please post an example reproduction of the yaml for the problem.
This is probably due to aliases being enabled by default. Use disablealiases or something like that in your serializerbuilder and it should match.