Пример #1
0
        protected static MsBuildExecutionResult <T> ExecuteMsBuildTaskInBuildServer <T>(T task) where T : ITask
        {
            var env = new Dictionary <string, string>
            {
                { AzurePipelines.EnvironmentVariableName, "true" }
            };

            var msbuildFixture = new MsBuildFixture();

            msbuildFixture.WithEnv(env.ToArray());
            return(msbuildFixture.Execute(task));
        }
Пример #2
0
        protected static MsBuildExecutionResult <T> ExecuteMsBuildTask <T>(T task) where T : ITask
        {
            var msbuildFixture = new MsBuildFixture();

            return(msbuildFixture.Execute(task));
        }