Test targets now clean up dotnet-hello from nuget cache
This commit is contained in:
parent
bd94c19d2e
commit
fc2ff2cc57
1 changed files with 9 additions and 1 deletions
|
@ -80,7 +80,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
return c.Success();
|
||||
}
|
||||
|
||||
[Target]
|
||||
[Target(nameof(CleanTestPackages))]
|
||||
public static BuildTargetResult BuildTestAssetPackages(BuildTargetContext c)
|
||||
{
|
||||
var dotnet = DotNetCli.Stage2;
|
||||
|
@ -100,6 +100,14 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
|
||||
return c.Success();
|
||||
}
|
||||
|
||||
[Target]
|
||||
public static BuildTargetResult CleanTestPackages(BuildTargetContext c)
|
||||
{
|
||||
Rmdir(Path.Combine(Dirs.NuGetPackages, "dotnet-hello"));
|
||||
|
||||
return c.Success();
|
||||
}
|
||||
|
||||
[Target]
|
||||
public static BuildTargetResult BuildTestAssetProjects(BuildTargetContext c)
|
||||
|
|
Loading…
Add table
Reference in a new issue