Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 909f43d

Browse files
committed
Stop the build from stepping on its own toes
This line caused every NuGet.Build.Packages.Tasks build after the first to fail, because it deleted the files needed to build the package a second time.
1 parent 46736e2 commit 909f43d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Directory.Build.targets

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33

44
<PropertyGroup>
@@ -60,8 +60,6 @@ AssemblyVersion=$(AssemblyVersion)" />
6060
</Target>
6161

6262
<Target Name="LocalPublish" Condition="'$(CI)' != 'true'" AfterTargets="Pack">
63-
<Exec Command='rd "$(NuGetPackageRoot)$(PackageId.ToLowerInvariant())" /q /s' Condition="Exists('$(NuGetPackageRoot)$(PackageId.ToLowerInvariant())')" />
64-
6563
<ItemGroup>
6664
<ToDelete Include="$(TEMP)\packages\$(PackageId)*.nupkg" />
6765
</ItemGroup>

0 commit comments

Comments
 (0)