Skip to content

Commit

Permalink
Fixed .NET 9 auto-discovery of custom build asset wwwroot/index.html …
Browse files Browse the repository at this point in the history
…conflicting with Uno Bootstrapper version
  • Loading branch information
Arlodotexe committed Dec 12, 2024
1 parent 8d56d3f commit 5c0d074
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ProjectHeads/App.Head.Wasm.props
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
<WasmShellEnableJiterpreter Condition="'$(WasmShellMonoRuntimeExecutionMode)' == 'Interpreter'">true</WasmShellEnableJiterpreter>
</PropertyGroup>

<!-- .NET 9.0 SDK automatically includes wwwroot\index.html, conflicting with Uno bootstrapper's generated index.html. -->
<ItemGroup>
<Content Remove="wwwroot\index.html" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Release'">
<WasmShellEnableAotProfile Condition="Exists('aot.profile')" Include="aot.profile" />

Expand Down Expand Up @@ -66,7 +71,6 @@
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="5.5.66" />
<PackageReference Include="Uno.Wasm.Bootstrap" Version="9.0.8" />
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="9.0.0" />
<PackageReference Include="Uno.Wasm.Bootstrap" Version="9.0.8" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 5c0d074

Please sign in to comment.