コード例 #1
0
        public static void ShowPlan(IReadOnlyCollection <ExecutableTarget> executableTargets)
        {
            var resourceText = ResourceUtility.GetResourceAllText <ExecutionPlanHtmlService>(c_htmlFileName);
            var contents     = resourceText
                               .Replace("__GRAPH__", GetGraphDefinition(executableTargets))
                               .Replace("__EVENTS__", GetEvents(executableTargets));

            var path = Path.Combine(NukeBuild.TemporaryDirectory, c_htmlFileName);

            File.WriteAllText(path, contents);

            // Workaround for https://github.com/dotnet/corefx/issues/10361
            Process.Start(new ProcessStartInfo
            {
                FileName        = path,
                UseShellExecute = true
            });
        }