Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 068062f

Browse files
committed
Remove Product package clean from test step in build
1 parent f665c28 commit 068062f

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

scripts/dotnet-cli-build/TestTargets.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public static BuildTargetResult RestoreDesktopTestAssetProjects(BuildTargetConte
124124
return c.Success();
125125
}
126126

127-
[Target(nameof(CleanTestPackages), nameof(CleanProductPackages))]
127+
[Target(nameof(CleanTestPackages))]
128128
public static BuildTargetResult BuildTestAssetPackages(BuildTargetContext c)
129129
{
130130
CleanBinObj(c, Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "TestPackages"));
@@ -197,17 +197,6 @@ public static BuildTargetResult BuildTestAssetPackages(BuildTargetContext c)
197197
return c.Success();
198198
}
199199

200-
[Target]
201-
public static BuildTargetResult CleanProductPackages(BuildTargetContext c)
202-
{
203-
foreach (var packageName in PackageTargets.ProjectsToPack)
204-
{
205-
Rmdir(Path.Combine(Dirs.NuGetPackages, packageName));
206-
}
207-
208-
return c.Success();
209-
}
210-
211200
[Target]
212201
public static BuildTargetResult CleanTestPackages(BuildTargetContext c)
213202
{

0 commit comments

Comments
 (0)