Installation of Microsoft.Build.CopyOnWrite
I would like to know how to install this nuget. I found somewhere I need to put it to Directory.Build.targets as SDK reference
<Project>
<Sdk Name="Microsoft.Build.CopyOnWrite" Version="1.0.302" />
</Project>
But I found on other sites, that it should be part of csproj, or Directory.Build.props
<Project>
<ItemGroup>
<PackageReference Include="Microsoft.Build.CopyOnWrite" Version="1.0.302" />
</ItemGroup>
</Project>
Now I switched solution to Central Package Management and I'm using Directory.Packages.props for version definitions and not sure if both Build definitions supports it.
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Microsoft.Build.CopyOnWrite" Version="1.0.302" />
</ItemGroup>
</Project>
So how to use it?
In most of my repos, where we use central packages, we use it in Directory.Packages.props using the syntax from this documentation:
<Project>
<ItemGroup>
<!-- <PackageVersion> elements here -->
</ItemGroup>
<ItemGroup>
<GlobalPackageReference Include="Microsoft.Build.CopyOnWrite" Version="1.0.334" />
</ItemGroup>
</Project>
Installation as an SDK is covered here but in my experience the global package reference approach covered more cases in my hetereogeneous C#/C++ repos.
Also see the comment at the top of the README that this package is becoming redundant with the 24H2 Windows 11 release, as well as Server 2025.
Also see the comment at the top of the README that this package is becoming redundant with the 24H2 Windows 11 release, as well as Server 2025.
hmm, thnx. I'm on 24H2 (Insider - Dev Build 26120.2222) so maybe I can just get rid of it.
Automatic CoW has been in Insider builds since spring 2024, so yes.
From: René Spišák @.> Sent: Wednesday, November 13, 2024 9:49 AM To: microsoft/MSBuildSdks @.> Cc: Comment @.>; Subscribed @.> Subject: Re: [microsoft/MSBuildSdks] Installation of Microsoft.Build.CopyOnWrite (Issue #593)
Also see the comment at the top of the READMEhttps://github.com/microsoft/MSBuildSdks/blob/main/src/CopyOnWrite/README.md that this package is becoming redundant with the 24H2 Windows 11 release, as well as Server 2025.
hmm, thnx. I'm on 24H2 (Insider - Dev Build 26120.2222) so maybe I can just get rid of it.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/MSBuildSdks/issues/593#issuecomment-2474329923 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAHYCQWIR47J7QIPMVX6IPT2AOGI5BFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLLDTOVRGUZLDORPXI6LQMWWES43TOVSUG33NNVSW45FGORXXA2LDOOJIFJDUPFYGLKTSMVYG643JORXXE6NFOZQWY5LFVEYTCOJVGY2TINRTQKSHI6LQMWSWS43TOVS2K5TBNR2WLKRSGY2TKNRXHA4DKMFHORZGSZ3HMVZKMY3SMVQXIZI. You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.