public override bool Execute() { Rid = RuntimeEnvironment.GetRuntimeIdentifier(); Architecture = RuntimeEnvironment.RuntimeArchitecture; OSName = Monikers.GetOSShortName(); return(true); }
public override bool Execute() { Rid = string.IsNullOrEmpty(OverrideRid) ? RuntimeEnvironment.GetRuntimeIdentifier() : OverrideRid; Architecture = RuntimeEnvironment.RuntimeArchitecture; OSName = Monikers.GetOSShortName(); return(true); }
public static BuildTargetResult PublishLatestVersionTextFile(BuildTargetContext c) { var osname = Monikers.GetOSShortName(); var latestVersionBlob = $"{Channel}/dnvm/latest.{osname}.{CurrentArchitecture.Current}.version"; var latestVersionFile = Path.Combine(Dirs.Stage2, ".version"); PublishFileAzure(latestVersionBlob, latestVersionFile); return(c.Success()); }
public static BuildTargetResult PublishLatestSharedFrameworkVersionTextFile(BuildTargetContext c) { var version = SharedFrameworkNugetVersion; var osname = Monikers.GetOSShortName(); var latestSharedFXVersionBlob = $"{Channel}/dnvm/latest.sharedfx.{osname}.{CurrentArchitecture.Current}.version"; var latestSharedFXVersionFile = Path.Combine( Dirs.Stage2, "shared", CompileTargets.SharedFrameworkName, version, ".version"); AzurePublisherTool.PublishFile(latestSharedFXVersionBlob, latestSharedFXVersionFile); return(c.Success()); }