Refactor SDK Build Steps
Prefix the SDK build stuff with "Sdk" to make it easier to add other sorts of packages (e.g. the shared host and the shared framework).
This commit is contained in:
parent
88c1340f6d
commit
29bc612565
6 changed files with 54 additions and 47 deletions
|
@ -55,7 +55,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
[BuildPlatforms(BuildPlatform.Windows)]
|
||||
public static BuildTargetResult GenerateZip(BuildTargetContext c)
|
||||
{
|
||||
var zipFile = c.BuildContext.Get<string>("CompressedFile");
|
||||
var zipFile = c.BuildContext.Get<string>("SdkCompressedFile");
|
||||
|
||||
if (File.Exists(zipFile))
|
||||
{
|
||||
|
@ -70,7 +70,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
[BuildPlatforms(BuildPlatform.Unix)]
|
||||
public static BuildTargetResult GenerateTarBall(BuildTargetContext c)
|
||||
{
|
||||
var tarFile = c.BuildContext.Get<string>("CompressedFile");
|
||||
var tarFile = c.BuildContext.Get<string>("SdkCompressedFile");
|
||||
|
||||
if (File.Exists(tarFile))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue