Pneuma.Localization.Resx 1.0.7-prerelease

This is a prerelease version of Pneuma.Localization.Resx.
dotnet add package Pneuma.Localization.Resx --version 1.0.7-prerelease
                    
NuGet\Install-Package Pneuma.Localization.Resx -Version 1.0.7-prerelease
                    
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="Pneuma.Localization.Resx" Version="1.0.7-prerelease">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pneuma.Localization.Resx" Version="1.0.7-prerelease" />
                    
Directory.Packages.props
<PackageReference Include="Pneuma.Localization.Resx">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 Pneuma.Localization.Resx --version 1.0.7-prerelease
                    
#r "nuget: Pneuma.Localization.Resx, 1.0.7-prerelease"
                    
#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 Pneuma.Localization.Resx@1.0.7-prerelease
                    
#: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=Pneuma.Localization.Resx&version=1.0.7-prerelease&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Pneuma.Localization.Resx&version=1.0.7-prerelease&prerelease
                    
Install as a Cake Tool

Pneuma.Localization.Resx

Roslyn source generators and code fixes for strongly typed localization from .resx resources in .NET applications.

What it does

The analyzer discovers .resx files included in a project and generates strongly typed extension APIs for IStringLocalizer<T>. It also provides code fixes for supported resource diagnostics. Nested resource paths and localized resource variants are supported.

Projects

  • src/Pneuma.Localization.Resx.Generators — source generator and analyzer implementation.
  • src/Pneuma.Localization.Resx.Fixers — Roslyn code fixes and NuGet packaging support.
  • tests/Pneuma.Localization.UnitTests — generator tests using TUnit and Roslyn testing libraries.
  • sample/SampleApi — example ASP.NET application with resources under Resources/.

Requirements

  • .NET SDK 10.0.302 or a compatible SDK selected by global.json.

Build and test

From the repository root:

dotnet restore Pneuma.Localization.Resx.slnx
dotnet build Pneuma.Localization.Resx.slnx
dotnet test tests/Pneuma.Localization.UnitTests/Pneuma.Localization.UnitTests.csproj
dotnet run --project sample/SampleApi/SampleApi.csproj

To create the analyzer package locally:

dotnet pack src/Pneuma.Localization.Resx.Fixers/Pneuma.Localization.Resx.Fixers.csproj -c Release

Example

Add a resource such as Resources/Hello.resx to an application and reference the generator and fixer projects (or the published package). The generator produces a typed localizer extension for each resource key, allowing code such as:

IStringLocalizer<Hello> localizer;
var message = localizer.Hello;

See sample/SampleApi for project configuration and nested-resource examples.

License

This project is licensed under the MIT License. See LICENSE.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.0.7-prerelease 60 9/9/2026
1.0.6-prerelease 77 8/13/2026
1.0.5-prerelease 77 8/5/2026
1.0.4-prerelease 77 8/4/2026
1.0.3-prerelease 73 8/3/2026
1.0.2-prerelease 73 8/3/2026
1.0.1-prerelease 75 8/1/2026
1.0.0-prerelease 83 7/30/2026