Closed Bartleby2718 closed 3 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.
<Import Project="..\CopyPackageToPublishDirectory.targets" />
Directory.Build.targets
~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.~
I noticed that
<Import Project="..\CopyPackageToPublishDirectory.targets" />
appears in every single NuGet package project file. We can remove this code duplication by leveragingDirectory.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.~