Skip to content

Commit

Permalink
fix: Don't allow for net8.0 or below to use bootstrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Oct 17, 2024
1 parent ca336cc commit 48dfb4a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Uno.Wasm.Bootstrap/build/Uno.Wasm.Bootstrap.targets
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@
<WasmBuildNative>true</WasmBuildNative>
</PropertyGroup>

<Target Name="_UnoWasmValidateCompatibleSdk"
BeforeTargets="BeforeBuild"
Condition=" '$(Disable_UnoWasmValidateCompatibleSdk)' != 'true' ">

<!-- Fail the build if the TargetFramework is below 9.0 -->
<Error Condition=" $([MSBuild]::VersionLowerThan( $([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')), '9.0')) "
Text="This version of Uno.Wasm.Bootstrap is not compatible with $(TargetFramework). Use net9.0 or later, see https://aka.platform.uno/wasm-net9-upgrade for more details." />

</Target>

<Target Name="_UnoInjectAOTSupport"
BeforeTargets="ResolveRuntimePackAssets"
Condition=" '$(WasmShellGenerateAOTProfile)' == 'true' ">
Expand Down

0 comments on commit 48dfb4a

Please sign in to comment.