Example #1
0
		public void TeamCityStyleResponseFile ()
		{
			var responseFile = Path.GetTempFileName ();
			var contents = 
					"/p:idea_build_agent_port=\"9090\" " +
					"/p:idea_build_server_build_id=\"13852\" " +
					"/p:path_separator=\":\"";
			File.WriteAllText (responseFile, contents);
			var parameters = new Parameters ("bin");
			parameters.ParseArguments (
			    new [] { "/noautorsp", string.Format ("@\"{0}\"", responseFile), "\"project.xml\""});
			
			var properties = parameters.Properties;
			Assert.AreEqual(3, properties.Count);
			Assert.AreEqual("9090", properties["idea_build_agent_port"].Value);
			Assert.AreEqual("13852", properties["idea_build_server_build_id"].Value);
			Assert.AreEqual(":", properties["path_separator"].Value);
		}
Example #2
0
File: Main.cs Project: nobled/mono
		public MainClass ()
		{
			string binPath = ToolLocationHelper.GetPathToDotNetFramework (TargetDotNetFrameworkVersion.Version20);
			defaultSchema = Path.Combine (binPath, "Microsoft.Build.xsd");
			parameters = new Parameters ();
		}
Example #3
0
File: Main.cs Project: mdae/MonoRT
 public MainClass()
 {
     binPath       = ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version20);
     defaultSchema = Path.Combine(binPath, "Microsoft.Build.xsd");
     parameters    = new Parameters(binPath);
 }