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)); }
protected static MsBuildExecutionResult <T> ExecuteMsBuildTask <T>(T task) where T : ITask { var msbuildFixture = new MsBuildFixture(); return(msbuildFixture.Execute(task)); }