TypealizR.Analyzers.CodeFixes 0.10.0-pre0011

Prefix Reserved
This is a prerelease version of TypealizR.Analyzers.CodeFixes.
There is a newer version of this package available.
See the version list below for details.
dotnet add package TypealizR.Analyzers.CodeFixes --version 0.10.0-pre0011
                    
NuGet\Install-Package TypealizR.Analyzers.CodeFixes -Version 0.10.0-pre0011
                    
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="TypealizR.Analyzers.CodeFixes" Version="0.10.0-pre0011">
  <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="TypealizR.Analyzers.CodeFixes" Version="0.10.0-pre0011" />
                    
Directory.Packages.props
<PackageReference Include="TypealizR.Analyzers.CodeFixes">
  <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 TypealizR.Analyzers.CodeFixes --version 0.10.0-pre0011
                    
#r "nuget: TypealizR.Analyzers.CodeFixes, 0.10.0-pre0011"
                    
#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 TypealizR.Analyzers.CodeFixes@0.10.0-pre0011
                    
#: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=TypealizR.Analyzers.CodeFixes&version=0.10.0-pre0011&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TypealizR.Analyzers.CodeFixes&version=0.10.0-pre0011&prerelease
                    
Install as a Cake Tool

build Coverage Status CodeQL Publish

Quality Gate Status Lines of Code Duplicated Lines (%) Code Smells Maintainability Rating Security Rating Bugs Vulnerabilities Reliability Rating Technical Debt

Samples STS Samples LTS

NuGet Nuget NuGet (preview)

TypealizR

The typed internationalizeR

Statically typed i18n support for the .NET - ecosystem

resource-first

✔️ DO this:


@inject IStringLocalizer<HomePage> localize;
@inject AppUser user;

<h1>@localize.Title()<h1>
<h2>@localize.Welcome_back__userName(user.GivenName)<h2>

demo_typealize_translation_initial

DON´T do that:


@inject IStringLocalizer<HomePage> localize;
@inject AppUser user;

<h1>@localize["Title"]<h1>
<h2>@localize["Welcome back, {0}", user.GivenName]<h2>

See resource-first for more details

code-first

✔️ DO this:

void Demo(ILocalizables i18n)
{
    Console.WriteLine(i18n.Hello("Earth")); // Hello Earth
    Console.WriteLine(i18n.Farewell("Arthur")); // So long, 'Arthur'. And thx for all the fish!
    Console.WriteLine(i18n.WhatIsTheMeaningOfLifeTheUniverseAndEverything); // 42
    Console.WriteLine(i18n.Greet(right: "Zaphod", left: "Arthur")); // Arthur greets Zaphod, and Zaphod replies: "Hi!".
}

DON´T do that:

void Demo(IStringLocalizer i18n)
{
    Console.WriteLine(i18n["Hello", "Earth"]); // Hello Earth
    Console.WriteLine(i18n["Farewell", "Arthur"]); // So long, 'Arthur'. And thx for all the fish!
    Console.WriteLine(i18n["WhatIsTheMeaningOfLifeTheUniverseAndEverything"]; // 42
    Console.WriteLine(i18n["Greet", "Arthur", "Zaphod")); // Arthur greets Zaphod, and Zaphod replies: "Hi!".
}

See code-first for more details.

There are no supported framework assets in this 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
0.14.3 214 11/16/2025
0.14.2 910 8/22/2025
0.14.1 183 7/7/2025
0.14.0 159 6/20/2025
0.14.0-pre0004 299 6/9/2025
0.14.0-pre0003 228 6/8/2025
0.14.0-pre0002 234 6/8/2025
0.14.0-pre0001 142 6/7/2025
0.13.1-pre0002 584 5/25/2025
0.13.1-pre0001 169 5/25/2025
0.13.0-pre0001 102 5/3/2025
0.12.0 257 4/15/2025
0.12.0-pre0002 163 4/6/2025
0.12.0-pre0001 383 4/3/2025
0.11.1-pre0004 486 3/24/2025
0.11.1-pre0003 434 3/24/2025
0.11.1-pre0002 373 3/24/2025
0.11.1-pre0001 301 3/23/2025
0.11.0 311 3/23/2025
0.11.0-pre0001 300 3/23/2025
0.10.0-pre0013 131 10/30/2024
0.10.0-pre0012 121 10/29/2024
0.10.0-pre0011 446 10/26/2024
0.10.0-pre0010 131 10/26/2024