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
<PackageReference Include="AzureZeng.MSBuildTasks.Json2Resources" Version="0.0.1.5" />
paket add AzureZeng.MSBuildTasks.Json2Resources --version 0.0.1.5
#r "nuget: AzureZeng.MSBuildTasks.Json2Resources, 0.0.1.5"
// Install AzureZeng.MSBuildTasks.Json2Resources as a Cake Addin #addin nuget:?package=AzureZeng.MSBuildTasks.Json2Resources&version=0.0.1.5 // Install AzureZeng.MSBuildTasks.Json2Resources as a Cake Tool #tool nuget:?package=AzureZeng.MSBuildTasks.Json2Resources&version=0.0.1.5
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.
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.