ResXResourceReader.NetStandard.StrongName 1.3.0

dotnet add package ResXResourceReader.NetStandard.StrongName --version 1.3.0                
NuGet\Install-Package ResXResourceReader.NetStandard.StrongName -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.StrongName" 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.StrongName --version 1.3.0                
#r "nuget: ResXResourceReader.NetStandard.StrongName, 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.StrongName as a Cake Addin
#addin nuget:?package=ResXResourceReader.NetStandard.StrongName&version=1.3.0

// Install ResXResourceReader.NetStandard.StrongName as a Cake Tool
#tool nuget:?package=ResXResourceReader.NetStandard.StrongName&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

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.3.0 2,787 3/5/2024
1.2.0 1,054 12/3/2023
1.1.0 10,722 5/19/2022

## 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