Skip to content

Commit e7dd91b

Browse files
committed
Avoid forcing Pack for nuget cleanup
1 parent 2f105a2 commit e7dd91b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Directory.Build.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Built from $(RepositoryUrl)/tree/$(SourceRevisionId.Substring(0, 9))
6767
<!-- Clears nuget cache for the current project package id -->
6868
<Target Name="ClearCachedPackageId"
6969
Condition="!$(CI) And '$(PackageId)' != '' And '$(IsPackable)' == 'true'"
70-
AfterTargets="Build;Pack" DependsOnTargets="Pack">
70+
AfterTargets="Build;Pack">
7171
<PropertyGroup>
7272
<PackageFolder>$(NuGetCache)\$(PackageId.ToLowerInvariant())</PackageFolder>
7373
</PropertyGroup>
@@ -79,7 +79,7 @@ Built from $(RepositoryUrl)/tree/$(SourceRevisionId.Substring(0, 9))
7979

8080
<Target Name="ClearHttpNuGetCache"
8181
Condition="!$(CI) And $(ClearHttpNuGetCacheOnPack) And Exists('$(HttpNuGetCache)') And '$(PackageId)' != '' And '$(IsPackable)' == 'true'"
82-
AfterTargets="Build;Pack" DependsOnTargets="Pack">
82+
AfterTargets="Build;Pack">
8383
<Message Text="Nuking $(HttpNuGetCache)" Importance="high" />
8484
<Exec Command='rd "$(HttpNuGetCache)" /q /s' Condition="'$(OS)' == 'Windows_NT'" />
8585
<Exec Command='rm -rf "$(HttpNuGetCache)"' Condition="'$(OS)' != 'Windows_NT'" />

0 commit comments

Comments
 (0)