Skip to content

dotnet restore erroring on NuGet.Config being used by another process #13937

Open
@cataggar

Description

@cataggar

NuGet Product Used

dotnet.exe

Product Version

dotnet sdk 9.0.100

Worked before?

dotnet sdk 8.0.401

Impact

I'm unable to use this version

Repro Steps & Context

Here is the internal pull request to reproduce.

I am often getting this error even with --disable-parallel:

~/ms/avs/src/conveyor/conveyor> dotnet build --disable-parallel
C:\Program Files\dotnet\sdk\9.0.100\NuGet.targets(751,5): error :
Unexpected failure reading NuGet.Config. Path: 'C:\Users\cataggar\AppData\Roaming\NuGet\NuGet.Config'.
The process cannot access the file 'C:\Users\cataggar\AppData\Roaming\NuGet\NuGet.Config' because it is being used by another process.

Verbose Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions