microsoft / MSBuildSdks

MSBuild project SDKs
MIT License
460 stars 82 forks source link

How can I tell Microsoft.Build.CopyOnWrite is working? [Question] #545

Closed titobf closed 8 months ago

titobf commented 8 months ago

I have created the file "Directory.Packages.Props" suggested here Usage in Directory.Packages.Props.

Now, how can I tell this build task and copy-on-write has been actually enabled? Is there a message somewhere? Maybe in the build logs inside Visual Studio?

Thanks in advance.

erikmav commented 8 months ago

When a CoW link is created there is currently a low priority MSBuild log message emitted. See the source code at https://github.com/microsoft/MSBuildSdks/blob/091be5b2ecff7353795e6510dd8f893e35da13a3/src/CopyOnWrite/Copy.cs#L999

titobf commented 8 months ago

Thanks. I was not seeing that message by just using "Directory.Packages.props" on the solution folder. Now I went to Visual Studio -> Manage Nuget Packages for Solution -> installed Microsoft.Build.CopyOnWrite on every project. Now the message appears several times.