[Blazor] Fix incrementalism with unlinked files (#19596)

This commit is contained in:
Javier Calvarro Nelson 2020-03-05 05:44:08 -08:00 committed by GitHub
parent 54a6399c35
commit e15e1c2415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -20,12 +20,6 @@
<TargetCompressionPath>$(_BlazorFilesIntermediateOutputPath)%(RelativePath).gz</TargetCompressionPath>
<TargetOutputPath>%(RelativePath).gz</TargetOutputPath>
<RelativePath>%(RelativePath).gz</RelativePath>
<InputSource>%(FullPath)</InputSource>
</_BlazorFileToCompress>
<!-- The linker is not incremental, so to support incremental compression in addition to linking we need to compute the hashes of the dlls and
pdbs, write them to a file when they change and use that as input for the compression task instead. -->
<_BlazorFileToCompress Condition="'$(BlazorWebAssemblyEnableLinking)' == 'true' and ('%(Extension)' == '.dll' or '%(Extension)' == '.pdb')">
<InputSource>$([MSBuild]::NormalizePath('$(_BlazorFilesIntermediateOutputPath)%(RelativePath).hash'))</InputSource>
</_BlazorFileToCompress>
@ -36,7 +30,7 @@
</ItemGroup>
<GetFileHash Files="@(_BlazorFileToCompress)" Condition="'$(BlazorWebAssemblyEnableLinking)' == 'true' and ('%(Extension)' == '.dll' or '%(Extension)' == '.pdb')">
<GetFileHash Files="@(_BlazorFileToCompress)">
<Output TaskParameter="Items" ItemName="_LinkerOutputHashes" />
</GetFileHash>