Skip to content

Restore is failing with MSB3026 #34016

@jaredpar

Description

@jaredpar

Full error:

[error].packages\microsoft.dotnet.build.tasks.targetframework.sdk\5.0.0-beta.20171.1\build\BinPlace.targets(37,5): error MSB3026: (NETCORE_ENGINEERING_TELEMETRY=Restore) Could not copy "F:\workspace_work\1\s.packages\microsoft.targetingpack.netframework.v4.7.2\1.0.0\lib\net472\System.Globalization.Extensions.dll" to "F:\workspace_work\1\s\artifacts\bin\ref\net472\System.Globalization.Extensions.dll". Beginning retry 1 in 1000ms. The process cannot access the file 'F:\workspace_work\1\s\artifacts\bin\ref\net472\System.Globalization.Extensions.dll' because it is being used by another process.

This is happening in both CI and official builds. The error is intermittent though. Seems like an underlying race in restore.

Build Kind Timeline Record
570811 PR #33953 Restore
570525 PR #33990 Restore
570426 PR #33485 Restore

Evaluated 100 builds
Impacted 3 bulids
Impacted 3 jobs

runfo search-timeline -d runtime -c 100 -pr -v "MSB3026" -m

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions