Skip to content

error MSB3491: Could not write lines to file roslyn\artifacts\obj\Microsoft.Build.Tasks.CodeAnalysis\Release\Microsoft.Managed.Core.CurrentVersions.targets because it is being used by another process #45842

@carlossanlop

Description

@carlossanlop

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=912429&view=logs&j=af161a59-3ba0-595e-b1dd-589f209b7277
Build error leg or test failing: VMR Vertical Build Validation / Windows_DevVersions_x64 / Build
Pull request: #45806

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": ["error MSB3491: Could not write lines to file", "Microsoft.Managed.Core.CurrentVersions.targets"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Output:

src\roslyn\src\Compilers\Core\MSBuildTask\Microsoft.Build.Tasks.CodeAnalysis.csproj(111,5): error MSB3491: Could not write lines to file "D:\a\_work\1\vmr\src\roslyn\artifacts\obj\Microsoft.Build.Tasks.CodeAnalysis\Release\Microsoft.Managed.Core.CurrentVersions.targets". The process cannot access the file 'D:\a\_work\1\vmr\src\roslyn\artifacts\obj\Microsoft.Build.Tasks.CodeAnalysis\Release\Microsoft.Managed.Core.CurrentVersions.targets' because it is being used by another process.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=912429
Error message validated: [error MSB3491: Could not write lines to file Microsoft.Managed.Core.CurrentVersions.targets]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 1/9/2025 10:19:46 PM UTC

Report

Build Definition Step Name Console log Pull Request
912429 dotnet/sdk Build Log #45806

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 1 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions