Skip to content

Commit

Permalink
[Wasm] Ensure traling slash in OutputPath (dotnet#103768)
Browse files Browse the repository at this point in the history
* [Wasm] Ensure traling slash in OutputPath

* Update src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets

Co-authored-by: Adeel Mujahid <[email protected]>

---------

Co-authored-by: Adeel Mujahid <[email protected]>
  • Loading branch information
javiercn and am11 authored Jun 20, 2024
1 parent 1a40427 commit 7bc9292
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<PropertyGroup>
<_WasmBuildWebCilPath>$([MSBuild]::NormalizeDirectory($(IntermediateOutputPath), 'webcil'))</_WasmBuildWebCilPath>
<_WasmBuildTmpWebCilPath>$([MSBuild]::NormalizeDirectory($(IntermediateOutputPath), 'tmp-webcil'))</_WasmBuildTmpWebCilPath>
<_WasmBuildOuputPath>$([MSBuild]::NormalizeDirectory('$(OutputPath)', 'wwwroot'))</_WasmBuildOuputPath>
</PropertyGroup>

<ConvertDllsToWebCil Candidates="@(_BuildAssetsCandidates)" IntermediateOutputPath="$(_WasmBuildTmpWebCilPath)" OutputPath="$(_WasmBuildWebCilPath)" IsEnabled="$(_WasmEnableWebcil)">
Expand All @@ -267,7 +268,7 @@ Copyright (c) .NET Foundation. All rights reserved.
AssetRole="Primary"
CopyToOutputDirectory="PreserveNewest"
CopyToPublishDirectory="Never"
ContentRoot="$(OutputPath)wwwroot"
ContentRoot="$(_WasmBuildOuputPath)"
BasePath="$(StaticWebAssetBasePath)"
>
<Output TaskParameter="Assets" ItemName="WasmStaticWebAsset" />
Expand Down

0 comments on commit 7bc9292

Please sign in to comment.