Skip to content

Commit

Permalink
Delete produced NuGet packages on a project clean.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrumhurum committed Dec 31, 2024
1 parent f0398b0 commit 5e938db
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/Mastering/NuGet.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
<OrigPackageDescription>$(PackageDescription)</OrigPackageDescription>
</PropertyGroup>

<Target Name="NuGetClean" AfterTargets="Clean">
<ItemGroup>
<FilesToDelete Include="$(PackageOutputPath)/*.nupkg" />
<FilesToDelete Include="$(PackageOutputPath)/*.snupkg" />
</ItemGroup>
<Delete Files="@(FilesToDelete)" />
</Target>

<Target Name="PrepareNuspec" BeforeTargets="_GetPackageFiles">
<NLP_GeneratePackageRepositoryUrl
ProjectDirectory="$(MSBuildProjectDirectory)"
Expand Down

0 comments on commit 5e938db

Please sign in to comment.