You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Microsoft.Build.CopyOnWrite MSBuild SDK overrides the native MSBuild Copy task to add support for ReFS and Dev Drive CloneFile (Copy on Write or CoW) on Windows. It is designed to be as backwards compatible as possible and should directly replace all usages of Copy in MSBuild.
That is the introduction to the CopyOnWrite package. However there are no actual instructions on how to use it. I was excited to find out this week about DevDrives and this is the last piece to get the full benefits. There is only a mention of Central Package Management, which personally I've never heard of.
Is it as simple as installing the package in my project (.NET Framework and/or .NET Core)?
Do I need to install it in all projects?
Do I need to change build tasks or anything like that?
How do I verify it's working?
Also it would be good to include information about the future update to Windows that will make this package redundant.
The text was updated successfully, but these errors were encountered:
I think you need it in all projects where you want the benefit, so I put it in Directory.Build.props.
You need a sizable solution to notice an obvious improvement, and I spotted the difference by comparing the amount of free space on my Dev Drive before and after. Since each file reference is equal to others, the difference does not show up in "Folder properties - Size" or "Folder properties - Size on disk"! I'm sure there are ways to interrogate the CoW status on individual files (using fsutil or similar tools), but I haven't looked for this.
After a clean of my solution: 455 GB free
After a full build of my solution without the package: 437 GB free
After a full build of my solution with the package: 446 GB free
I also think build times improved somewhat, but I have no clear evidence for this.
That is the introduction to the CopyOnWrite package. However there are no actual instructions on how to use it. I was excited to find out this week about DevDrives and this is the last piece to get the full benefits. There is only a mention of
Central Package Management
, which personally I've never heard of.Also it would be good to include information about the future update to Windows that will make this package redundant.
The text was updated successfully, but these errors were encountered: