DotNetResourcesExtensions 1.0.7
See the version list below for details.
dotnet add package DotNetResourcesExtensions --version 1.0.7
NuGet\Install-Package DotNetResourcesExtensions -Version 1.0.7
<PackageReference Include="DotNetResourcesExtensions" Version="1.0.7" />
<PackageVersion Include="DotNetResourcesExtensions" Version="1.0.7" />
<PackageReference Include="DotNetResourcesExtensions" />
paket add DotNetResourcesExtensions --version 1.0.7
#r "nuget: DotNetResourcesExtensions, 1.0.7"
#:package DotNetResourcesExtensions@1.0.7
#addin nuget:?package=DotNetResourcesExtensions&version=1.0.7
#tool nuget:?package=DotNetResourcesExtensions&version=1.0.7
IMPORTANT NOTICE!!!
All users that used the 1.0.6 version should directly move to 1.0.7 because 1.0.6 misses for a reason
the BuildTasks
project and users might get build errors , whether they use it or not.
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 | Versions 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. |
-
.NETFramework 4.7.2
- Microsoft.Bcl.AsyncInterfaces (>= 8.0.0)
- System.Memory (>= 4.5.5)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
- System.Text.Json (>= 8.0.4)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 8.0.0)
- System.Drawing.Primitives (>= 4.3.0)
- System.Memory (>= 4.5.5)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
- System.Text.Json (>= 8.0.4)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
net7.0
- System.Drawing.Primitives (>= 4.3.0)
- System.Text.Json (>= 8.0.4)
-
net7.0-windows10.0.19041
- System.Text.Json (>= 8.0.4)
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.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.7 release of DotNetResourcesExtensions package.
For more additional details , visit https://github.com/mdcdi1315/dotnetresourcesextensions .
This release adresses the issue existing with the BuildTasks embeddability.
Additionally , the internal ResX version can now handle ResX files from other ResX formats , for example
the original Windows Forms ResX. Additionally , you can directly embed custom file references from the writer interface.