AzureZeng.MSBuildTasks.Json2Resources 0.0.1.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package AzureZeng.MSBuildTasks.Json2Resources --version 0.0.1.4                
NuGet\Install-Package AzureZeng.MSBuildTasks.Json2Resources -Version 0.0.1.4                
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.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AzureZeng.MSBuildTasks.Json2Resources --version 0.0.1.4                
#r "nuget: AzureZeng.MSBuildTasks.Json2Resources, 0.0.1.4"                
#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.
// Install AzureZeng.MSBuildTasks.Json2Resources as a Cake Addin
#addin nuget:?package=AzureZeng.MSBuildTasks.Json2Resources&version=0.0.1.4

// Install AzureZeng.MSBuildTasks.Json2Resources as a Cake Tool
#tool nuget:?package=AzureZeng.MSBuildTasks.Json2Resources&version=0.0.1.4                

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 74 11/22/2024
0.0.1.4 131 8/19/2024
0.0.1.3 90 7/17/2024
0.0.1.2 92 7/17/2024