Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
avivanoff opened this issue Nov 26, 2023 · 5 comments

Comments

@avivanoff
Copy link

avivanoff commented Nov 26, 2023

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?

@erikmav
Copy link
Collaborator

erikmav commented Nov 28, 2023

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

@erikmav
Copy link
Collaborator

erikmav commented Nov 28, 2023

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.

@avivanoff
Copy link
Author

@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.

@erikmav
Copy link
Collaborator

erikmav commented Nov 30, 2023

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

@avivanoff
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants