There seems to be a problem with paket restore when using msbuild/p:BuildInParallel=true switch.
It happens on our build machine randomly, but frequently (every day):
C:\SolutionDir.paket\paket.targets(36,5): error MSB3073: The command ""C:\SolutionDir.paket\paket.exe" restore --references-files "C:\SolutionDir\FooProject\paket.references" " exited with code 1. [C:\SolutionDir\FooProject\FooProject.csproj]
When using paket restore with --log-file (BTW why isn't it available on the paket's commands list displayed when you run paket without any arguments?) I could see the cause of the failures:
packages folder is locked by paket.exe (PID = 4220). Waiting...
Paket failed with:
The process cannot access the file 'C:\SolutionDir\packages\paket.locked' because it is being used by another process.
The workaround is to run paket restore before running msbuild.
Is it possible to make paket support such a scenario out of the box?
There seems to be a problem with paket restore when using msbuild/p:BuildInParallel=true switch.
It happens on our build machine randomly, but frequently (every day):
C:\SolutionDir.paket\paket.targets(36,5): error MSB3073: The command ""C:\SolutionDir.paket\paket.exe" restore --references-files "C:\SolutionDir\FooProject\paket.references" " exited with code 1. [C:\SolutionDir\FooProject\FooProject.csproj]
When using paket restore with --log-file (BTW why isn't it available on the paket's commands list displayed when you run paket without any arguments?) I could see the cause of the failures:
packages folder is locked by paket.exe (PID = 4220). Waiting...
Paket failed with:
The process cannot access the file 'C:\SolutionDir\packages\paket.locked' because it is being used by another process.
The workaround is to run paket restore before running msbuild.
Is it possible to make paket support such a scenario out of the box?