zhongliangyu / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
0 stars 0 forks source link

Protobuf error System.Xml.Writer wrong assembly #458

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using protobuf-net version 2.0.0.668 (runtime version v2.0.50727) in a C# 
application using .NET 4.5

I tryed to run this code:

    Person newPerson;
    using (var file = File.OpenRead("person.bin")) {
        newPerson = Serializer.Deserialize<Person>(file);
    }

But I get this error:

Error   3   The type 'System.Xml.XmlWriter' is defined in an assembly that is not 
referenced. You must add a reference to assembly 'System.Xml, Version=2.0.0.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Even if I've already added System.Xml 4.0.0 in my referencies

Original issue reported on code.google.com by undiciz...@gmail.com on 17 Jun 2015 at 11:12