Skip to content

Commit 8bba03b

Browse files
author
bsdayo
committed
fix(json): update ItemSpec
1 parent e450748 commit 8bba03b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/NekoSpace.Build.Resources.Json/GenerateJsonResources.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ public override bool Execute()
4343

4444
var resFilename = $"{filenameWithCulture}.resources";
4545
var resLogicalName = GetResourceLogicalName(inputItem.ItemSpec, resFilename);
46+
var resOutputPath = Path.Combine(OutputPath, resLogicalName);
4647

47-
var writer = new ResourceWriter(Path.Combine(OutputPath, resLogicalName));
48+
var writer = new ResourceWriter(resOutputPath);
4849

4950
var ok = true;
5051

@@ -93,7 +94,7 @@ bool ReadElement(string currentName, JsonElement element)
9394
// Copy all the input metadata to output
9495
inputItem.CopyMetadataTo(outputItem);
9596

96-
outputItem.ItemSpec = resLogicalName;
97+
outputItem.ItemSpec = resOutputPath;
9798

9899
_outputResources.Add(outputItem);
99100
}

src/NekoSpace.Build.Resources.Json/NekoSpace.Build.Resources.Json.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<PackageId>NekoSpace.Build.Resources.Json</PackageId>
5-
<PackageVersion>1.0.2</PackageVersion>
5+
<PackageVersion>1.0.3</PackageVersion>
66
<Description>Embed JSON resources into your .NET application.</Description>
77
<PackageLicenseExpression>MIT</PackageLicenseExpression>
88
<Authors>bsdayo</Authors>

0 commit comments

Comments
 (0)