ResXResourceReader.NetStandard.StrongName 1.1.0

.NET Standard 2.0
Install-Package ResXResourceReader.NetStandard.StrongName -Version 1.1.0
dotnet add package ResXResourceReader.NetStandard.StrongName --version 1.1.0
<PackageReference Include="ResXResourceReader.NetStandard.StrongName" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ResXResourceReader.NetStandard.StrongName --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ResXResourceReader.NetStandard.StrongName, 1.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ResXResourceReader.NetStandard.StrongName as a Cake Addin
#addin nuget:?package=ResXResourceReader.NetStandard.StrongName&version=1.1.0

// Install ResXResourceReader.NetStandard.StrongName as a Cake Tool
#tool nuget:?package=ResXResourceReader.NetStandard.StrongName&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

nuget build downloads

Install

via Nuget: https://www.nuget.org/packages/ResXResourceReader.NetStandard/

Why would you want this library?

If you want to programmatically read/update a ResX file, the standard is to use the System.Resources.ResXResourceReader and System.Resources.ResXResourceWriter. However these libraries are part of System.Windows.Forms. That is either a annoying extra dependency or a deal breaker for .Net Standard.

This library separates those two classes from System.Windows.Forms and packages them for .Net Standard so you can easily include them across frameworks.

If you don't know a resx file is:

  • It is a way of shipping resources, like strings and files, with an assembly (project).
  • It simplifies messy file copy on build and relative runtime file references
  • Is commonly used for managing translations and localized resources

Sources

This library is almost a direct copy of files from the open sourced winforms respository
https://github.com/dotnet/winforms/tree/b666dc7a94d8ac87a7d300cfb4fa86332fb79bae/src/System.Windows.Forms/src/System/Resources

However, I did revert this change in order to remove the dependency on System.Numerics, which was limiting .Net Standard compatibility.

I've also changed the namespace to System.Resources.NetStandard to avoid potential naming conflicts.

Examples

See how to use ResXResourceReader and ResXResourceWriter at

Gotchas

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 205 5/19/2022

## 1.1.0
 Fixed issues where the library couldn't open Resx files generated by other editors