Esempio n. 1
0
        public override bool Execute()
        {
            Rid          = RuntimeEnvironment.GetRuntimeIdentifier();
            Architecture = RuntimeEnvironment.RuntimeArchitecture;
            OSName       = Monikers.GetOSShortName();

            return(true);
        }
Esempio n. 2
0
        public override bool Execute()
        {
            Rid          = string.IsNullOrEmpty(OverrideRid) ? RuntimeEnvironment.GetRuntimeIdentifier() : OverrideRid;
            Architecture = RuntimeEnvironment.RuntimeArchitecture;
            OSName       = Monikers.GetOSShortName();

            return(true);
        }
Esempio n. 3
0
        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());
        }
Esempio n. 4
0
        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());
        }