Skip to content

Commit 3fec5f5

Browse files
authored
[blazor] Disable dotnet.js fingerprinting for .NET 8 (#31829)
1 parent 60502d0 commit 3fec5f5

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.6_0.targets

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ Copyright (c) .NET Foundation. All rights reserved.
5050
<_AggressiveAttributeTrimming Condition="'$(_AggressiveAttributeTrimming)' == ''">true</_AggressiveAttributeTrimming>
5151
<DebuggerSupport Condition="'$(DebuggerSupport)' == '' and '$(Configuration)' != 'Debug'">false</DebuggerSupport>
5252
<BlazorCacheBootResources Condition="'$(BlazorCacheBootResources)' == ''">true</BlazorCacheBootResources>
53-
<WasmFingerprintDotnetJs>true</WasmFingerprintDotnetJs>
54-
53+
5554
<_TargetingNET80OrLater>$([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '8.0'))</_TargetingNET80OrLater>
55+
<WasmFingerprintDotnetJs>true</WasmFingerprintDotnetJs>
56+
<WasmFingerprintDotnetJs Condition="'$(_TargetingNET80OrLater)' == 'true'">false</WasmFingerprintDotnetJs>
5657
<WasmEnableWebcil Condition="'$(WasmEnableWebcil)' == '' and ('$(TargetFrameworkIdentifier)' != '.NETCoreApp' or '$(_TargetingNET80OrLater)' != 'true')">false</WasmEnableWebcil>
5758

5859
<!-- Don't generate a NETSDK1151 error if a non self-contained Exe references a Blazor Exe -->

src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/Build_SatelliteAssembliesAreCopiedToBuildOutput.Build.files.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,6 @@
881881
"${OutputPath}\\wwwroot\\_framework\\dotnet.js.gz",
882882
"${OutputPath}\\wwwroot\\_framework\\dotnet.js",
883883
"${OutputPath}\\wwwroot\\_framework\\dotnet.js.gz",
884-
"${OutputPath}\\wwwroot\\_framework\\dotnet.js",
885-
"${OutputPath}\\wwwroot\\_framework\\dotnet.js.gz",
886884
"${OutputPath}\\wwwroot\\_framework\\dotnet.wasm",
887885
"${OutputPath}\\wwwroot\\_framework\\dotnet.wasm.gz",
888886
"${OutputPath}\\wwwroot\\_framework\\dotnet.js",

src/Tests/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/StaticWebAssetsBaselines/StaticWebAssets_BuildMinimal_Works.Build.files.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,8 +793,6 @@
793793
"${OutputPath}\\wwwroot\\_framework\\dotnet.js.gz",
794794
"${OutputPath}\\wwwroot\\_framework\\dotnet.js",
795795
"${OutputPath}\\wwwroot\\_framework\\dotnet.js.gz",
796-
"${OutputPath}\\wwwroot\\_framework\\dotnet.js",
797-
"${OutputPath}\\wwwroot\\_framework\\dotnet.js.gz",
798796
"${OutputPath}\\wwwroot\\_framework\\dotnet.wasm",
799797
"${OutputPath}\\wwwroot\\_framework\\dotnet.wasm.gz",
800798
"${OutputPath}\\wwwroot\\_framework\\dotnet.js",

0 commit comments

Comments
 (0)