Commit Graph
5 Commits
Author SHA1 Message Date
Jonathan Pryor 4546abda7e [System.Data.Services.Client] Compile in string resources.
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).
2012-02-28 19:36:49 -05:00
Paolo Molaro f815427d73 Don't reference WindowsBase in the mobile profiles. 2011-10-07 10:59:24 +02:00
Marek Safar a5ee4f3b76 Remove wrong key from System.Data.Services.Client 2011-01-26 13:29:11 +00:00
Marek Habersack 4fb24e90fc [wcf] Install the System.Data.Services.Client properly. 2011-01-25 15:45:42 +01:00
Marek Habersack af6bdf8b4b Mono build integration files
svn path=/trunk/mcs/; revision=156380
2010-04-28 23:02:30 +00:00