DotNetResourcesExtensions 1.0.6

Suggested Alternatives

DotNetResourcesExtensions 1.0.7

Additional Details

The 1.0.6 package version misses the BuildTasks project and thus it will lead in compilation errors when referencing this version.
Please move to 1.0.7 or a higher version of the package.

There is a newer version of this package available.
See the version list below for details.
dotnet add package DotNetResourcesExtensions --version 1.0.6
                    
NuGet\Install-Package DotNetResourcesExtensions -Version 1.0.6
                    
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="DotNetResourcesExtensions" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetResourcesExtensions" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="DotNetResourcesExtensions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DotNetResourcesExtensions --version 1.0.6
                    
#r "nuget: DotNetResourcesExtensions, 1.0.6"
                    
#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.
#:package DotNetResourcesExtensions@1.0.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DotNetResourcesExtensions&version=1.0.6
                    
Install as a Cake Addin
#tool nuget:?package=DotNetResourcesExtensions&version=1.0.6
                    
Install as a Cake Tool

The DotNetResourcesExtensions Package

This package adds new ways and methods for handling .NET resources , for those who do not like to use the default provided alternatives.

The package is provided for four different .NET flavors to use.

Supported .NET flavors:

  • .NET Framework 4.7.2 or above
  • .NET 7 or above
  • .NET Windows Desktop 7 or above
  • .NET Standard 2.0 or above

What does this package add?

It defines a new alternative to get and load resources. Additionally , it defines new custom resource readers and writers to use.

The new alternative is the IResourceLoader and all it's inheriting classes that currently support it.

What this interface does is to define a simple alternative to load and get resources in your application.

Additionally it is shipped with some default implementations of this interface so as to use it to load with your own implemented System.Resources.IResourceReader!

Example:

Supposing that you already have created a custom System.Resources.IResourceReader class , and you want to connect it with the IResourceLoader interface.

Step 1: Create a new class that implements OptimizedResourceLoader , an abstract implementation of IResourceLoader:

	using DotNetResourcesExtensions;
	
	public class YourClassName : OptimizedResourceLoader

Where YourClassName the name of your class.

Step 2: Create constructors that use on your own System.Resources.IResourceReader instance , and feed your instance to read field.

	{
		public YourClassName(System.String FilePath)
		{
			read = new YourIResourceReaderClass(FilePath);
		}
	}

Where YourIResourceReaderClass the System.Resources.IResourceReader instance we mentioned above.

You are ready! You can use this simple example to get and read resources.

Except from defining the IResourceLoader interface itself , it defines new resource format alternatives.

Currently , Custom ResX , JSON , Custom XML and the Custom Binary Resource Format are some of the formats that this library currently implements and has.

All readers and writers of course are always implementing the System.Resources.IResourceReader and System.Resources.IResourceWriter interfaces , respectively.

There are also shipped some default classes for reading resources that are implementing the IResourceLoader interface.

Such as:

DotNetResourceLoader , which loads and gets resources using modified copies of System.Resources.Extensions classes.

ResXResourceLoader , which loads and gets resources from even an arbitrary .resx XML file.

DotNetOldResourceLoader , which loads and gets resources from the old .resources format.

CustomDataResourcesLoader , which loads and gets resources from the custom resource stream format.

Note that not all loaders are supported on all platforms and .NET flavors.

You may also visit the documentation of the project for more information. It is located here.

NOTE: The .NET Standard version is provided only for bridging .NET Framework with .NET 7. It is not meant to be used so as to cover all target frameworks. If you attempt to use it in old .NET Core or on .NET 5 or 6 the package will throw a build error in any way.

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 is compatible.  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.  net7.0-windows10.0.19041 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  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 (1)

Showing the top 1 NuGet packages that depend on DotNetResourcesExtensions:

Package Downloads
DotNetResourcesExtensions.NativeWindowsResources

A plugin for the DotNetResourcesExtensions project that provides a reader for reading native Win32 resources!

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-alpha3 112 2/3/2025
2.0.0-alpha2 94 10/6/2024
1.0.9.2 108 1/28/2025
1.0.9.1 109 1/19/2025
1.0.9 91 1/16/2025
1.0.8 231 10/14/2024
1.0.7 140 9/27/2024
1.0.6 225 9/24/2024 1.0.6 is deprecated because it has critical bugs.
1.0.5 126 9/20/2024
1.0.4 126 9/19/2024
1.0.3 125 8/30/2024
1.0.2 115 8/26/2024
1.0.1 151 8/25/2024
1.0.1-beta0 123 8/16/2024
1.0.0 132 8/9/2024
1.0.0-beta3 113 8/7/2024
1.0.0-beta2 123 7/25/2024

v1.0.6 release of DotNetResourcesExtensions package.
For more additional details , visit https://github.com/mdcdi1315/dotnetresourcesextensions .
This release mainly fixes minor stuff occured out after everyting is released.
The Custom XML Format became more friendly by allowing the type attribute to be written also as a string that describes the type.
This has not introduced a breaking change in the format since it is wholly optional but now is also the default option when writing a new file.
You may also continue using the numeric method if you want to.
In the Human Readable Format , users of it get more perf efficiency on large byte arrays and
general core refectorations that is less error-prone.
The MS-INI format also got fixed by a number of bugs and made also code-performant too.
Additionally , users get fixes on some of built-in array representations about storing some major numeric types.