prep for commands we'll be shipping as tools
add cleanup step to build, remove oob commands only clean the sdk directory Incorporate PR Feedback
This commit is contained in:
parent
6bd374a4ec
commit
58be4c447e
4 changed files with 24 additions and 10 deletions
|
@ -20,9 +20,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
|
||||
public static readonly string[] BinariesForCoreHost = new[]
|
||||
{
|
||||
"csi",
|
||||
"csc",
|
||||
"vbc"
|
||||
"csc"
|
||||
};
|
||||
|
||||
public static readonly string[] ProjectsToPublish = new[]
|
||||
|
@ -32,7 +30,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
|
||||
public static readonly string[] FilesToClean = new[]
|
||||
{
|
||||
"README.md"
|
||||
"vbc.exe"
|
||||
};
|
||||
|
||||
public static readonly string[] ProjectsToPack = new[]
|
||||
|
@ -165,9 +163,13 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
|
||||
CopySharedHost(Dirs.Stage1);
|
||||
PublishSharedFramework(c, Dirs.Stage1, DotNetCli.Stage0);
|
||||
return CompileCliSdk(c,
|
||||
var result = CompileCliSdk(c,
|
||||
dotnet: DotNetCli.Stage0,
|
||||
outputDir: Dirs.Stage1);
|
||||
|
||||
CleanOutputDir(Path.Combine(Dirs.Stage1, "sdk"));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
[Target]
|
||||
|
@ -214,9 +216,17 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
}
|
||||
}
|
||||
|
||||
CleanOutputDir(Path.Combine(Dirs.Stage2, "sdk"));
|
||||
|
||||
return c.Success();
|
||||
}
|
||||
|
||||
private static void CleanOutputDir(string directory)
|
||||
{
|
||||
FS.RmFilesInDirRecursive(directory, "vbc.exe");
|
||||
FS.RmFilesInDirRecursive(directory, "*.pdb");
|
||||
}
|
||||
|
||||
private static void CopySharedHost(string outputDir)
|
||||
{
|
||||
// corehost will be renamed to dotnet at some point and then this can be removed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue