Skip to content

Commit

Permalink
fix(json): update ItemSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdayo committed May 21, 2023
1 parent e450748 commit 8bba03b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/NekoSpace.Build.Resources.Json/GenerateJsonResources.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ public override bool Execute()

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

var writer = new ResourceWriter(Path.Combine(OutputPath, resLogicalName));
var writer = new ResourceWriter(resOutputPath);

var ok = true;

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

outputItem.ItemSpec = resLogicalName;
outputItem.ItemSpec = resOutputPath;

_outputResources.Add(outputItem);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageId>NekoSpace.Build.Resources.Json</PackageId>
<PackageVersion>1.0.2</PackageVersion>
<PackageVersion>1.0.3</PackageVersion>
<Description>Embed JSON resources into your .NET application.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Authors>bsdayo</Authors>
Expand Down

0 comments on commit 8bba03b

Please sign in to comment.