[Mono-dev] System.SR

Alexander Köplinger alexander.koeplinger at xamarin.com
Wed Mar 30 12:07:12 UTC 2016


The SR class is autogenerated in the corefx build from
Resources/Strings.resx in each project with an msbuild task:
https://github.com/dotnet/buildtools/blob/master/src/Microsoft.DotNet.Build.Tasks/PackageFiles/resources.targets

The referencesources uses a similar pattern although most strings are
stored in a .txt there and we used a tool to turn that into the .cs:
https://github.com/mono/mono/blob/master/mcs/class/System/ReferenceSources/SR.cs
For a library I've ported from corefx I manually added the SR class: (
https://github.com/mono/mono/blob/master/mcs/class/System.Threading.Tasks.Dataflow/SR.cs

- Alex

2016-03-28 18:38 GMT+02:00 Neale Ferguson <neale at sinenomine.net>:

> I am looking at incorporating the CoreFx System.Data.SqlClient into mono
> and in examining the code have come across references to the System.SR
> namespace. I am not familiar with this and it seems not to exist elsewhere
> in either the reference sources or mono sources.
>
> Neale
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20160330/c1e27065/attachment.html>


More information about the Mono-devel-list mailing list