System.Data.Services.Client uses System.Resources for localization
purposes (even though only one language is provided...). Consequently,
to get _useful_ strings (read: error messages) out of
System.Data.Services.Client, System.Resources needs to be able to find
them, such that the following works:
$ csharp -r:System.Data.Services.Client;
Mono C# Shell, type "help;" for help
Enter statements below.
csharp> using System.Resources;
csharp> using System.Data.Services.Client;
csharp> var a = typeof(SendingRequestEventArgs).Assembly;
csharp> var r = new ResourceManager("System.Data.Services.Client", a);
csharp> r.GetString("AtomMaterializer_PropertyNotExpectedEntry");
If `r.GetString()` fails, it'll throw an exception instead of
returning a useful string, which is bad. Unfortunately, it failed.
To fix this, we use `resgen` to compile
Client/System.Data.Services.Client.txt into a .resources file and
compile the .resources file into the assembly with `gmcs -resource:`,
which allows the above `csharp` fragment to work w/o throwing (and
thus allows OData users to get useful, meaningful error messages).
It appears Microsoft didn't make any changes to the assembly in .NET 4.0 - they simply
changed its version number to 4.0.0.0 and added few assembly attributes.
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.
With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.