@@ -37,6 +37,11 @@ Copyright (c) .NET Foundation. All rights reserved.
37
37
<UsingTask TaskName =" Microsoft.NET.Sdk.BlazorWebAssembly.GenerateBlazorBootExtensionJson" AssemblyFile =" $(_BlazorWebAssemblySdkTasksAssembly)" />
38
38
39
39
<PropertyGroup >
40
+ <_TargetingNETBefore80 >$([MSBuild]::VersionLessThan('$(TargetFrameworkVersion)', '8.0'))</_TargetingNETBefore80 >
41
+ <_TargetingNET80OrLater >$([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '8.0'))</_TargetingNET80OrLater >
42
+ <_TargetingNETBefore100 >$([MSBuild]::VersionLessThan('$(TargetFrameworkVersion)', '10.0'))</_TargetingNETBefore100 >
43
+ <_TargetingNET100OrLater >$([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '10.0'))</_TargetingNET100OrLater >
44
+
40
45
<SelfContained >true</SelfContained >
41
46
<CopyLocalLockFileAssemblies >true</CopyLocalLockFileAssemblies >
42
47
@@ -48,13 +53,9 @@ Copyright (c) .NET Foundation. All rights reserved.
48
53
<EnableUnsafeUTF7Encoding Condition =" '$(EnableUnsafeUTF7Encoding)' == ''" >false</EnableUnsafeUTF7Encoding >
49
54
<HttpActivityPropagationSupport Condition =" '$(HttpActivityPropagationSupport)' == ''" >false</HttpActivityPropagationSupport >
50
55
<DebuggerSupport Condition =" '$(DebuggerSupport)' == '' and '$(Configuration)' != 'Debug'" >false</DebuggerSupport >
51
- <BlazorCacheBootResources Condition =" '$(BlazorCacheBootResources)' == ''" >true</BlazorCacheBootResources >
56
+ <BlazorCacheBootResources Condition =" '$(BlazorCacheBootResources)' == '' and '$(_TargetingNET100OrLater)' != 'true' " >true</BlazorCacheBootResources >
52
57
<BlazorFingerprintBlazorJs Condition =" '$(BlazorFingerprintBlazorJs)' == '' and '$(OverrideHtmlAssetPlaceholders)' == 'true'" >true</BlazorFingerprintBlazorJs >
53
58
54
- <_TargetingNETBefore80 >$([MSBuild]::VersionLessThan('$(TargetFrameworkVersion)', '8.0'))</_TargetingNETBefore80 >
55
- <_TargetingNET80OrLater >$([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '8.0'))</_TargetingNET80OrLater >
56
- <_TargetingNETBefore100 >$([MSBuild]::VersionLessThan('$(TargetFrameworkVersion)', '10.0'))</_TargetingNETBefore100 >
57
-
58
59
<!-- 8 < .NET we want to fingerprint dotnet.js because it's part of the blazor.boot.json which is loaded from blazor.webassembly.js -->
59
60
<!-- 8 <= .NET < 10 we don't want to fingerprint dotnet.js because it's path is hardcoded in blazor.webassembly.js -->
60
61
<!-- 10 <= .NET we want to leave fingerprinting to WasmSDK because it knows if import maps where applied -->
0 commit comments