Skip to content

CI failure (net48 x86): GenerateResource.cache is being used by another process #62028

Closed
@carlossanlop

Description

@carlossanlop
.dotnet\sdk\6.0.100-rc.2.21505.57\Microsoft.Common.CurrentVersion.targets(3264,5):
error MSB3101: (NETCORE_ENGINEERING_TELEMETRY=Build)
Could not write state file
"D:\a\_work\1\s\artifacts\obj\Microsoft.Interop.SourceGeneration\netstandard2.0-Release\Microsoft.Interop.SourceGeneration.csproj.GenerateResource.cache".
The process cannot access the file
'D:\a\_work\1\s\artifacts\obj\Microsoft.Interop.SourceGeneration\netstandard2.0-Release\Microsoft.Interop.SourceGeneration.csproj.GenerateResource.cache'
because it is being used by another process.

The failure happened in the CI of this PR: #59850

It was the net48 x86 leg:
https://github.com/dotnet/runtime/pull/59850/checks?check_run_id=4316507944

Here's the log:
https://dev.azure.com/dnceng/public/_build/results?buildId=1485041&view=logs&j=79ebbb2e-07f2-5457-c5e5-132dd7ee4ba8&t=19d75d51-494c-5498-c708-7a0aae08aa93

@elinor-fung @jkoritzinsky


Variant: "File already exists" instead of "File used by another process":
https://dev.azure.com/dnceng/public/_build/results?buildId=1490663&view=logs&j=924a68e5-ba21-56d0-bfb9-0b068c6fae9a&t=8c8cf4a0-c3ab-58ea-a108-e7df9b47cd9f&l=2889

.dotnet/sdk/6.0.100/Microsoft.Common.CurrentVersion.targets(2304,5): error MSB3101:
(NETCORE_ENGINEERING_TELEMETRY=Build) Could not write state file
"/Users/runner/work/1/s/artifacts/obj/Microsoft.Interop.SourceGeneration/netstandard2.0-Debug/Microsoft.Interop.SourceGeneration.csproj.AssemblyReference.cache".
The file
'/Users/runner/work/1/s/artifacts/obj/Microsoft.Interop.SourceGeneration/netstandard2.0-Debug/Microsoft.Interop.SourceGeneration.csproj.AssemblyReference.cache'
already exists.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions