CreateExecutionCommand() protected method

protected CreateExecutionCommand ( MonoDevelop.Projects.ConfigurationSelector configSel, DotNetProjectConfiguration configuration ) : MonoDevelop.Core.Execution.ExecutionCommand
configSel MonoDevelop.Projects.ConfigurationSelector
configuration DotNetProjectConfiguration
return MonoDevelop.Core.Execution.ExecutionCommand
Ejemplo n.º 1
0
        public async Task EnvVarsInConfigurationAreParsed()
        {
            string        solFile = Util.GetSampleProject("run-configurations", "ConsoleProject", "ConsoleProject.default-console.csproj");
            DotNetProject p       = (DotNetProject)await Services.ProjectService.ReadSolutionItem(Util.GetMonitor(), solFile);

            var rc   = (DotNetProjectRunConfiguration)p.RunConfigurations.FirstOrDefault();
            var conf = (DotNetProjectConfiguration)p.Configurations [0];

            rc.EnvironmentVariables.Add("abc", "${TargetDir}");
            var cmd = (DotNetExecutionCommand)p.CreateExecutionCommand(conf.Selector, conf, rc);

            Assert.AreEqual(conf.OutputDirectory.ToString(), cmd.EnvironmentVariables["abc"]);
        }