From 14ca58c2684d2ef5ab5aa212a8ebc7877b52f4fb Mon Sep 17 00:00:00 2001 From: jacalvar Date: Thu, 20 Jun 2024 16:40:51 +0200 Subject: [PATCH 1/2] [Wasm] Ensure traling slash in OutputPath --- .../build/Microsoft.NET.Sdk.WebAssembly.Browser.targets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets b/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets index ef98dd12c9ad0..6e546a455914a 100644 --- a/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets +++ b/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets @@ -252,6 +252,7 @@ Copyright (c) .NET Foundation. All rights reserved. <_WasmBuildWebCilPath>$([MSBuild]::NormalizeDirectory($(IntermediateOutputPath), 'webcil')) <_WasmBuildTmpWebCilPath>$([MSBuild]::NormalizeDirectory($(IntermediateOutputPath), 'tmp-webcil')) + <_WasmBuildOuputPath>$([MSBuild]::EnsureTrailingSlash('$(OutputPath)'))wwwroot\ @@ -267,7 +268,7 @@ Copyright (c) .NET Foundation. All rights reserved. AssetRole="Primary" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="Never" - ContentRoot="$(OutputPath)wwwroot" + ContentRoot="$(_WasmBuildOuputPath)" BasePath="$(StaticWebAssetBasePath)" > From 2bc297a4a8f3394467417a63118ea3952a115723 Mon Sep 17 00:00:00 2001 From: Javier Calvarro Nelson Date: Thu, 20 Jun 2024 17:05:30 +0200 Subject: [PATCH 2/2] Update src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com> --- .../build/Microsoft.NET.Sdk.WebAssembly.Browser.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets b/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets index 6e546a455914a..02688abdf80c1 100644 --- a/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets +++ b/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets @@ -252,7 +252,7 @@ Copyright (c) .NET Foundation. All rights reserved. <_WasmBuildWebCilPath>$([MSBuild]::NormalizeDirectory($(IntermediateOutputPath), 'webcil')) <_WasmBuildTmpWebCilPath>$([MSBuild]::NormalizeDirectory($(IntermediateOutputPath), 'tmp-webcil')) - <_WasmBuildOuputPath>$([MSBuild]::EnsureTrailingSlash('$(OutputPath)'))wwwroot\ + <_WasmBuildOuputPath>$([MSBuild]::NormalizeDirectory('$(OutputPath)', 'wwwroot'))