Skip to content

Commit d6fd9c9

Browse files
authored
Merge pull request #904 from unoplatform/dev/jela/cache-break
fix: Don't allow for net8.0 or below to use bootstrapper
2 parents 0d862de + 6233b7a commit d6fd9c9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@
6161
<WasmBuildNative>true</WasmBuildNative>
6262
</PropertyGroup>
6363

64+
<Target Name="_UnoWasmValidateCompatibleSdk"
65+
BeforeTargets="BeforeBuild"
66+
Condition=" '$(TargetFramework)' != '' AND '$(Disable_UnoWasmValidateCompatibleSdk)' != 'true' ">
67+
68+
<!-- Fail the build if the TargetFramework is below 9.0 -->
69+
<Error Condition=" $([MSBuild]::VersionLessThan( $([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')), '9.0')) "
70+
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." />
71+
72+
</Target>
73+
6474
<Target Name="_UnoInjectAOTSupport"
6575
BeforeTargets="ResolveRuntimePackAssets"
6676
Condition=" '$(WasmShellGenerateAOTProfile)' == 'true' ">

0 commit comments

Comments
 (0)