Repository navigation
Disable compression in Microsoft.AspNetCore.App.Internal.Assets - #67545
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Disables static web assets publish-compression for the Microsoft.AspNetCore.App.Internal.Assets package to avoid intermittent file-lock/race failures when multiple consumer apps publish in parallel and all invoke compression targets against the same shared obj/compressed/publish directory.
Changes:
- Set
CompressionEnabled=falseinMicrosoft.AspNetCore.App.Internal.Assets.csprojto prevent static web asset publish-compression targets from running in this producer project. - Add an explanatory comment describing the parallel publish race and why compression should be performed by consuming root apps instead.
BrennanConroy
approved these changes
Jul 1, 2026
…ompressionEnabled=false Co-authored-by: javiercn <[email protected]>
javiercn
force-pushed
the
copilot/disable-compression-static-web-assets
branch
from
July 3, 2026 20:56
0d19e19 to
d808add
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set
<CompressionEnabled>false</CompressionEnabled>inMicrosoft.AspNetCore.App.Internal.Assets.csprojto fix a race condition where parallel consumer publishes all invoke this project's publish-compression targets against the same sharedobj/compressed/publishdir, causing intermittent "file is being used by another process" failures.Description
CompressionEnabled=falsepreventsMicrosoft.NET.Sdk.StaticWebAssets.Compression.targetsfrom being imported in this library project — no compression targets run, no shared-dir contention.StaticWebAssetPublishCompressAllAssets=true, so they compress all static web assets (including these framework JS files) in their own isolated$(IntermediateOutputPath)compressed\publishdirs. No performance regression.Microsoft.AspNetCore.Components.WebView(src/Components/WebView/WebView/src/StaticWebAssets.Groups.targets).Alternative to #67500.