Keboo.ResxSorter
1.0.1
dotnet tool install --global Keboo.ResxSorter --version 1.0.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Keboo.ResxSorter --version 1.0.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Keboo.ResxSorter&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Keboo.ResxSorter --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ResxSorter
A .NET global tool that sorts <data> elements in .resx resource files alphabetically by name.
Installation
dotnet tool install -g Keboo.ResxSorter
Usage
ResxSorter -i <input-file> [options]
Options
| Option | Alias | Description |
|---|---|---|
--input-file |
-i |
(Required) The input .resx file to sort. |
--output-file |
-o |
The output file. If omitted, the input file is overwritten in place. |
--force |
-f |
Always write the output, even if the file is already sorted. |
--verbose |
-v |
Write verbose output. |
Examples
Sort a .resx file in place:
ResxSorter -i Resources.resx
Sort and write to a new file:
ResxSorter -i Resources.resx -o Resources.Sorted.resx
Force overwrite even if already sorted:
ResxSorter -i Resources.resx -f
Why?
Keeping .resx entries sorted alphabetically reduces merge conflicts and makes diffs easier to review when multiple developers are editing resource files.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.