ResXResourceReader.NetStandard 1.3.0

dotnet add package ResXResourceReader.NetStandard --version 1.3.0
NuGet\Install-Package ResXResourceReader.NetStandard -Version 1.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ResXResourceReader.NetStandard" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ResXResourceReader.NetStandard --version 1.3.0
#r "nuget: ResXResourceReader.NetStandard, 1.3.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ResXResourceReader.NetStandard as a Cake Addin
#addin nuget:?package=ResXResourceReader.NetStandard&version=1.3.0

// Install ResXResourceReader.NetStandard as a Cake Tool
#tool nuget:?package=ResXResourceReader.NetStandard&version=1.3.0

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 Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (13)

Showing the top 5 NuGet packages that depend on ResXResourceReader.NetStandard:

Package Downloads
stryker The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

All stryker mutation test logic is contained in this library. This package does not include a runner. Use this package if you want to extend stryker with your own runner.

AppText.Translations

AppText.Translations is an add-on for the AppText CMS that adds a Translation content type and a few specialized API endpoints to deal with translations.

PointShare.ExtensionMethods.SPO

PointShare.ExtensionMethods.SPO

SunamoXliffParser

Just fork from https://www.nuget.org/packages/fmdev.XliffParser, due to .NET 5+

Bnsights.Coreib

Package Description

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on ResXResourceReader.NetStandard:

Repository Stars
Squidex/squidex
Headless CMS and Content Managment Hub
stryker-mutator/stryker-net
Mutation testing for .NET core and .NET framework!
JonPSmith/AuthPermissions.AspNetCore
This library provides extra authorization and multi-tenant features to an ASP.NET Core application.
codemerx/CodemerxDecompile
The first standalone .NET decompiler for Mac, Linux and Windows
Version Downloads Last updated
1.3.0 28,939 3/5/2024
1.2.0 43,522 12/3/2023
1.1.0 1,082,203 12/6/2021
1.0.1 603,116 4/23/2020
1.0.0 25,035 3/3/2020

## 1.3.0
 Support ResXNullRef nodes
 
 ## 1.2.0
 Fix errors when working with file-based ResX resources (icons, images, sound, files, etc)
 
 ## 1.1.0
 Fixed issues where the library couldn't open Resx files generated by other editors