AzureZeng.MSBuildTasks.Json2Resources 0.0.1.5

dotnet add package AzureZeng.MSBuildTasks.Json2Resources --version 0.0.1.5
                    
NuGet\Install-Package AzureZeng.MSBuildTasks.Json2Resources -Version 0.0.1.5
                    
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="AzureZeng.MSBuildTasks.Json2Resources" Version="0.0.1.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AzureZeng.MSBuildTasks.Json2Resources" Version="0.0.1.5" />
                    
Directory.Packages.props
<PackageReference Include="AzureZeng.MSBuildTasks.Json2Resources" />
                    
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 AzureZeng.MSBuildTasks.Json2Resources --version 0.0.1.5
                    
#r "nuget: AzureZeng.MSBuildTasks.Json2Resources, 0.0.1.5"
                    
#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 AzureZeng.MSBuildTasks.Json2Resources@0.0.1.5
                    
#: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=AzureZeng.MSBuildTasks.Json2Resources&version=0.0.1.5
                    
Install as a Cake Addin
#tool nuget:?package=AzureZeng.MSBuildTasks.Json2Resources&version=0.0.1.5
                    
Install as a Cake Tool

Json2Resource

This NuGet package helps you convert JSON resource file(s) to .NET resource files.

Currently, this package is enough for normal usage. Maybe more features are needed to be implemented in the future.

WARNING: This package may have some break changes in the future.

Usage

After installing this package, add JSON resource file(s) as JsonResource item type.


<ItemGroup>
    <JsonResource Include="Test.json"/>
</ItemGroup>

It will be compiled and embedded to assembly automatically.

Supported properties

Property Name Description Accepted Values Default Value
FilePrefix The prefix of resource keys which resources are load from external files Any $file:
LogicalName The logical resource name in assembly Any Auto-determined by task
ContextPath The resource compile context path, for external resource files FileDir, or any other values Empty (as project root)

If ContextPath is set to FileDir, the resource compile context path will be the directory which contains the JSON resource file.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • 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
0.0.1.5 155 11/22/2024
0.0.1.4 181 8/19/2024
0.0.1.3 139 7/17/2024
0.0.1.2 140 7/17/2024