Skip to content

Commit 74a46c5

Browse files
authored
fix: Rewrite relative paths to absolute for server project dependencies
1 parent 5912286 commit 74a46c5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/Uno.Wasm.Bootstrap/build/Uno.Wasm.Bootstrap.targets

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,5 +427,17 @@
427427
<WasmNativeDebugSymbols>true</WasmNativeDebugSymbols>
428428
</PropertyGroup>
429429
</Target>
430-
430+
431+
<!-- Workaround for https://github.com/unoplatform/Uno.Wasm.Bootstrap/issues/973 -->
432+
<Target Name="_UnoAdjustOriginalItemSpecForProjectReference"
433+
BeforeTargets="GetCurrentProjectBuildStaticWebAssetItems"
434+
Condition="'$(NETCoreSdkVersion)' >= '9.0.300' and '$(UnoDisableAdjustOriginalItemSpecForProjectReference)' != 'true' ">
435+
<ItemGroup>
436+
<_UnoCachedBuildStaticWebAssets Include="@(_CachedBuildStaticWebAssets)">
437+
<OriginalItemSpec Condition="'%(_CachedBuildStaticWebAssets.OriginalItemSpec)' != ''">$([System.IO.Path]::GetFullPath('%(_CachedBuildStaticWebAssets.OriginalItemSpec)'))</OriginalItemSpec>
438+
</_UnoCachedBuildStaticWebAssets>
439+
<_CachedBuildStaticWebAssets Remove="@(_CachedBuildStaticWebAssets)" />
440+
<_CachedBuildStaticWebAssets Include="@(_UnoCachedBuildStaticWebAssets)" />
441+
</ItemGroup>
442+
</Target>
431443
</Project>

0 commit comments

Comments
 (0)