.NET Binary Serialization in 3.6

Topics: serialization
Mar 13, 2013 at 12:50 PM
I am unable to get .NET binary serialization this to work. I'm not that experienced with portable library projects as I have never used them before. The only significant difference I noticed is that the portable libraries don't support the .NET binary serialization. Try as I might I could not manage to compile the 3.6 project as a non-portable project.

I don't really want to use other forms of serialization since I work with very large graphs and serializing to GraphML (or similar) adds too much overhead.
I would prefer to use 3.6 since I am already using features which are not included in 3.3.

Can anyone suggest what I can do?
Apr 9, 2013 at 9:19 AM
Hi apokryfos, I am in the same situation. It is just impossible to compile the source code provided by the authors. Have you any update for this problem?
Moreover, I do not get if the project is still alive or not..
Can anyone reply?
Thanks in advance.
Apr 9, 2013 at 11:58 AM
Haven't had any update on this yet.

Compiling the source isn't the real issue, though I have to admit it takes some effort to get it to compile. The problem is compiling it not as a portable library project but as a standard .NET class library project, in order to use BinaryFormatters for binary serialization.

I'm using simple IO using BinaryReaders/Writers for now, but this means I'll need to implement additional ones in order to start using other more complex types for TVertex or TEdge (right now it's just int and Edge<int>).

I'm not sure if the project is alive either.

As a sidenote I think I had to
a) download the "portable library SDK" and "portable library tools for visual studio 10"
b) include the QuickGraph.Serialization project in the core of the solution because (for some reason) it was referenced but not included
doing this I was able to compile it as a portable library project (which is the same one that I could download from NuGet).
Apr 10, 2013 at 8:37 AM
Finally, I recompiled the project as a standard library. Here my solution.

Apr 10, 2013 at 12:18 PM
Wow! You're a lifesaver.

Much appreciated.