Ejemplo n.º 1
0
        public void Test()
        {
            TargetTree targetTree = new TargetTree();

            targetTree.AddTarget("compile")
            .SetDescription("Compiles the VS solution and runs FxCop analysis on it")
            .Do(TargetCompile).DependsOn("load.solution");

            ITarget target = targetTree.GetTarget("compile");

            using (ITaskSession session = new TaskSession(new SimpleTaskContextProperties(), new string[0]))
            {
                session.Start(OnBuildFinished);
                NotifyUserTask task = new NotifyUserTask("message");
                task.Execute(session);
            }
        }
Ejemplo n.º 2
0
        public static void Execute(ITaskContext environment, string message)
        {
            NotifyUserTask task = new NotifyUserTask(message);

            task.Execute(environment);
        }