MSBuildSdks icon indicating copy to clipboard operation
MSBuildSdks copied to clipboard

"error MSB3030: Could not copy the file" when using Microsoft.Build.CopyOnWrite

Open avivanoff opened this issue 1 year ago • 5 comments

We have a solution that consists of 100+ projects, both managed and native. The source code and various package caches are located on the DevDrive. When building the solution, both from command line and from Visual Studio, we get random MSB3030 errors "Could not copy the file".

How do I go about figuring out the root of the problem? Can I produce a detailed log that will be helpful for you to analyze?

avivanoff avatar Nov 26 '23 19:11 avivanoff

The CoW package includes low-priority logging that becomes visible when using -verbosity:diag that might help.

erikmav avatar Nov 28 '23 17:11 erikmav

Also be sure you are using the latest package - a recent large commit aligned the Copy task code in CoW more closely with the underlying code from MSBuild. For some users this corrected some outstanding problems and allowed committing the SDK update.

erikmav avatar Nov 28 '23 17:11 erikmav

@erikmav, we are using Microsoft.Build.CopyOnWrite 1.0.282.

Using v=diag did not help much, unless I am not looking for the right thing. I can send you the log privately if that would help.

avivanoff avatar Nov 29 '23 05:11 avivanoff

@avivanoff Sure, send to my username at Microsoft dot com

erikmav avatar Nov 30 '23 21:11 erikmav

@erikmav, logs are sent. Let me know if they went through.

avivanoff avatar Dec 01 '23 06:12 avivanoff