madelson / DistributedLock

A .NET library for distributed synchronization
MIT License
1.74k stars 182 forks source link

Rename CopyPackageToPublishDirectory.targets to Directory.Build.targets #187

Closed Bartleby2718 closed 3 months ago

Bartleby2718 commented 4 months ago

I noticed that <Import Project="..\CopyPackageToPublishDirectory.targets" /> appears in every single NuGet package project file. We can remove this code duplication by leveraging Directory.Build.targets. See https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-by-directory?view=vs-2022 for more details.

~This is implemented in https://github.com/Bartleby2718/DistributedLock/pull/1. Once https://github.com/madelson/DistributedLock/pull/186 is merged, the destination branch can be updated to this repository.~