From 2821a18894031cc1511a1dabb11fc31411f6954f Mon Sep 17 00:00:00 2001 From: Javier Calvarro Nelson Date: Thu, 19 Aug 2021 14:26:16 -0700 Subject: [PATCH] Fix another casing issue --- src/BlazorWasmSdk/Tasks/ComputeBlazorBuildAssets.cs | 2 +- .../WasmPublishIntegrationTest.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BlazorWasmSdk/Tasks/ComputeBlazorBuildAssets.cs b/src/BlazorWasmSdk/Tasks/ComputeBlazorBuildAssets.cs index 1e778c03495a..9654b34637fc 100644 --- a/src/BlazorWasmSdk/Tasks/ComputeBlazorBuildAssets.cs +++ b/src/BlazorWasmSdk/Tasks/ComputeBlazorBuildAssets.cs @@ -202,7 +202,7 @@ private static void ApplyUniqueMetadataProperties(ITaskItem candidate) } if (string.Equals(candidate.GetMetadata("ResolvedFrom"), "{HintPathFromItem}", StringComparison.Ordinal)) { - candidate.SetMetadata("OriginalItemSpec", candidate.ItemSpec); + candidate.RemoveMetadata("OriginalItemSpec"); } break; case ".wasm": diff --git a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTest.cs b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTest.cs index 1df1ca193914..a1ceba1149be 100644 --- a/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTest.cs +++ b/src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTest.cs @@ -123,7 +123,7 @@ public void Publish_Works_WithLibraryUsingHintPath() reference.Name = "Reference"; reference.Add(new XElement( "HintPath", - Path.Combine("..", "RazorClassLibrary", "bin", "Debug", "net6.0", "RazorClassLibrary.dll"))); + Path.Combine("..", "razorclasslibrary", "bin", "Debug", "net6.0", "RazorClassLibrary.dll"))); } });