leejw51 / protobuf-net

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

CF20 will not compile in VS2005 #228

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open protobuf-net-cf20.csproj in VS2005 (see issue 227 if it fails)
2. Build Solution

What is the expected output? What do you see instead?
Expected it to compile cleanly but got 2 errors on things
that does not exists in this version of CF

What version of the product are you using? On what operating system?
Windows XP, VS2005, r444 of protobuf-net

Please provide any additional information below.
This is triggered by the fact that __string__ in this version of CF at least 
does not have the .Contains method and that 
System.Runtime.CompilerServices.RuntimeHelpers does not have a GetHashCode 
method in CF.
Some stuff about the last issue can be found here
http://stackoverflow.com/questions/470044/net-compact-framework-gethashcodeobjec
t-equivalent
and 
http://www.pcreview.co.uk/forums/identityhashcode-compactframework-t1299108.html

A patch is attached

Original issue reported on code.google.com by pe...@birchroad.net on 5 Sep 2011 at 6:54

Attachments: