Skip to content

[Operational Issue]: Flaky file lock issue in Microsoft.AspNetCore.Components.Gateway #8005

Closed
dotnet/aspnetcore
#68069

Description

@akoeplinger

Error

##[error].dotnet\sdk\11.0.100-preview.6.26359.118\Sdks\Microsoft.NET.Sdk.StaticWebAssets\targets\Microsoft.NET.Sdk.StaticWebAssets.Compression.targets(359,5): error : The process cannot access the file 'D:\a_work\1\s\src\aspnetcore\artifacts\obj\Microsoft.AspNetCore.Components.Gateway\Release\net11.0\compressed\publish\o4b6igg9d4-{0}-urybgy2z5y-urybgy2z5y.br' because it is being used by another process.

Links

Root Cause

unknown

Blocking

  • This issue is blocking

Affected Releases

  • .NET 10
  • .NET 10 (SDK band build)
  • .NET 11

Activity

  1. akoeplinger commented on Jul 28, 2026

    @akoeplinger
    MemberAuthor

    I've talked with @maraf and he said he'll take a look

  2. maraf commented on Jul 28, 2026

    @maraf
    Member
    Image

    There is a parallel publish of the Gateway.csproj introduced in dotnet/aspnetcore#67599

    • MSBuild (BuildInParallel = True)
      • Microsoft.AspNetCore.Components.Gateway.Cli.csproj
        • Microsoft.AspNetCore.Components.Gateway.csproj
      • Microsoft.AspNetCore.Components.Gateway.csproj

    https://github.com/dotnet/aspnetcore/blob/1d1e00c5e991f44227f91627e3fff9e8542c3ff4/src/Components/Gateway/cli/Microsoft.AspNetCore.Components.Gateway.Cli.csproj#L41-L50

  3. mmitche commented on Jul 31, 2026

    @mmitche
    Member

    This exact file-lock failure reproduced after the issue was closed, on the Preview 7 shipping branch in Windows_Pgo_x64:

    Microsoft.NET.Sdk.StaticWebAssets.Compression.targets(359,5): error: The process cannot access the file ...Microsoft.AspNetCore.Components.Gateway...compressed...br because it is being used by another process.
    

    The build is still running, but this job has already failed.

  4. akoeplinger commented on Aug 4, 2026

    @akoeplinger
    MemberAuthor

    The preview7 failure is expected, the fix was only done in main. Given the current state of p7 we likely can't backport it anymore, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions