Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternative for ResxResourceWriter in .NET Core

I need to create Resources(resx-files) in my .NET Core based application. Until now I used to use ResxResourceWriter from System.Windows.Forms for that. Any suggestions how to handle this task in .NET Core?

Beside our existing software, which has it's own localization approach based on some binary file, the new software should benefit from existing expensive translations and even have some translation synchronization of terms, when they added to the binary file.

Of course, you can use XmlSerialization. The question is, whether there is a formal way to create/manage Resx-files in .NET Core.

like image 535
Maxim Fleitling Avatar asked Feb 13 '17 07:02

Maxim Fleitling


People also ask

What is the use of RESX file in C#?

Resources in . resx files. Unlike text files, which can only store string resources, XML resource (. resx) files can store strings, binary data such as images, icons, and audio clips, and programmatic objects.


1 Answers

Tada! https://www.nuget.org/packages/ResXResourceReader.NetStandard

I extracted ResXReourceWriter and ResXResourceReader from the Winforms github and packaged them for .NetStandard

like image 122
farlee2121 Avatar answered Sep 27 '22 20:09

farlee2121