public void SetEcmaScriptVersion(BuildConfiguration buildConfig, string value)
		{
			SetStringProperty(buildConfig, TargetPropertyName, value);
		}
		public void SetRemoveComments(BuildConfiguration buildConfig, bool value)
		{
			SetBooleanProperty(buildConfig, RemoveCommentsPropertyName, value);
		}
		public void SetGenerateSourceMap(BuildConfiguration buildConfig, bool value)
		{
			SetBooleanProperty(buildConfig, GenerateSourceMapPropertyName, value);
		}
		public bool GetCompileOnSave(BuildConfiguration buildConfig)
		{
			return GetBooleanProperty(buildConfig, CompileOnSavePropertyName, false);
		}
		public void SetCompileOnBuild(BuildConfiguration buildConfig, bool value)
		{
			SetBooleanProperty(buildConfig, CompileOnBuildPropertyName, value);
		}
		public void SetOutputFileName(BuildConfiguration buildConfig, string value)
		{
			SetStringProperty(buildConfig, OutputFileNamePropertyName, value);
		}
Exemple #7
0
 void SetBooleanProperty(BuildConfiguration buildConfig, string name, bool value)
 {
     SetStringProperty(buildConfig, name, value.ToString());
 }
Exemple #8
0
 public bool GetGenerateSourceMap(BuildConfiguration buildConfig)
 {
     return(GetBooleanProperty(buildConfig, GenerateSourceMapPropertyName, true));
 }
Exemple #9
0
 public void SetGenerateSourceMap(BuildConfiguration buildConfig, bool value)
 {
     SetBooleanProperty(buildConfig, GenerateSourceMapPropertyName, value);
 }
Exemple #10
0
 public bool GetRemoveComments(BuildConfiguration buildConfig)
 {
     return(GetBooleanProperty(buildConfig, RemoveCommentsPropertyName, true));
 }
Exemple #11
0
 public void SetRemoveComments(BuildConfiguration buildConfig, bool value)
 {
     SetBooleanProperty(buildConfig, RemoveCommentsPropertyName, value);
 }
Exemple #12
0
 public void SetCompileOnBuild(BuildConfiguration buildConfig, bool value)
 {
     SetBooleanProperty(buildConfig, CompileOnBuildPropertyName, value);
 }
Exemple #13
0
 public bool GetCompileOnBuild(BuildConfiguration buildConfig)
 {
     return(GetBooleanProperty(buildConfig, CompileOnBuildPropertyName, true));
 }
Exemple #14
0
 public bool GetCompileOnSave(BuildConfiguration buildConfig)
 {
     return(GetBooleanProperty(buildConfig, CompileOnSavePropertyName, false));
 }
		public void SetModuleKind(BuildConfiguration buildConfig, string value)
		{
			SetStringProperty(buildConfig, ModuleKindPropertyName, value);
		}
Exemple #16
0
 public string GetEcmaScriptVersion(BuildConfiguration buildConfig)
 {
     return(GetStringProperty(buildConfig, TargetPropertyName, DefaultEcmaScriptVersion));
 }
		public void SetNoImplicitAny(BuildConfiguration buildConfig, bool value)
		{
			SetBooleanProperty(buildConfig, NoImplicitAnyPropertyName, value);
		}
Exemple #18
0
 public void SetEcmaScriptVersion(BuildConfiguration buildConfig, string value)
 {
     SetStringProperty(buildConfig, TargetPropertyName, value);
 }
		public void SetOutputDirectory(BuildConfiguration buildConfig, string value)
		{
			SetStringProperty(buildConfig, OutputDirectoryPropertyName, value);
		}
Exemple #20
0
 public string GetModuleKind(BuildConfiguration buildConfig)
 {
     return(GetStringProperty(buildConfig, ModuleKindPropertyName, DefaultModuleKind));
 }
		void SetStringProperty(BuildConfiguration buildConfig, string name, string value)
		{
			if (!HasMSBuildProject)
				return;
			
			msbuildProject.SetProperty(
				buildConfig.Configuration,
				buildConfig.Platform,
				name,
				value,
				PropertyStorageLocations.ConfigurationSpecific,
				false);
		}
Exemple #22
0
 public void SetModuleKind(BuildConfiguration buildConfig, string value)
 {
     SetStringProperty(buildConfig, ModuleKindPropertyName, value);
 }
		public bool GetCompileOnBuild(BuildConfiguration buildConfig)
		{
			return GetBooleanProperty(buildConfig, CompileOnBuildPropertyName, true);
		}
Exemple #24
0
 public bool GetNoImplicitAny(BuildConfiguration buildConfig)
 {
     return(GetBooleanProperty(buildConfig, NoImplicitAnyPropertyName, false));
 }
		public bool GetRemoveComments(BuildConfiguration buildConfig)
		{
			return GetBooleanProperty(buildConfig, RemoveCommentsPropertyName, true);
		}
Exemple #26
0
 public void SetNoImplicitAny(BuildConfiguration buildConfig, bool value)
 {
     SetBooleanProperty(buildConfig, NoImplicitAnyPropertyName, value);
 }
		public bool GetGenerateSourceMap(BuildConfiguration buildConfig)
		{
			return GetBooleanProperty(buildConfig, GenerateSourceMapPropertyName, true);
		}
Exemple #28
0
 public string GetOutputFileName(BuildConfiguration buildConfig)
 {
     return(GetStringProperty(buildConfig, OutputFileNamePropertyName, String.Empty));
 }
		public string GetEcmaScriptVersion(BuildConfiguration buildConfig)
		{
			return GetStringProperty(buildConfig, TargetPropertyName, DefaultEcmaScriptVersion);
		}
Exemple #30
0
 public void SetOutputFileName(BuildConfiguration buildConfig, string value)
 {
     SetStringProperty(buildConfig, OutputFileNamePropertyName, value);
 }
		public string GetModuleKind(BuildConfiguration buildConfig)
		{
			return GetStringProperty(buildConfig, ModuleKindPropertyName, DefaultModuleKind);
		}
Exemple #32
0
 public string GetOutputDirectory(BuildConfiguration buildConfig)
 {
     return(GetStringProperty(buildConfig, OutputDirectoryPropertyName, String.Empty));
 }
		public bool GetNoImplicitAny(BuildConfiguration buildConfig)
		{
			return GetBooleanProperty(buildConfig, NoImplicitAnyPropertyName, false);
		}
Exemple #34
0
 public void SetOutputDirectory(BuildConfiguration buildConfig, string value)
 {
     SetStringProperty(buildConfig, OutputDirectoryPropertyName, value);
 }
		public string GetOutputFileName(BuildConfiguration buildConfig)
		{
			return GetStringProperty(buildConfig, OutputFileNamePropertyName, String.Empty);
		}
		bool GetBooleanProperty(BuildConfiguration buildConfig, string name, bool defaultValue)
		{
			if (!HasMSBuildProject)
				return defaultValue;

			string propertyValue = msbuildProject.GetProperty(buildConfig.Configuration, buildConfig.Platform, name);
			return ConvertBooleanValue(propertyValue, defaultValue);
		}
		public string GetOutputDirectory(BuildConfiguration buildConfig)
		{
			return GetStringProperty(buildConfig, OutputDirectoryPropertyName, String.Empty);
		}
		void SetBooleanProperty(BuildConfiguration buildConfig, string name, bool value)
		{
			SetStringProperty(buildConfig, name, value.ToString());
		}
		string GetStringProperty(BuildConfiguration buildConfig, string name, string defaultValue)
		{
			if (!HasMSBuildProject)
				return defaultValue;
			
			string propertyValue = msbuildProject.GetProperty(buildConfig.Configuration, buildConfig.Platform, name);
			if (!String.IsNullOrEmpty(propertyValue)) {
				return propertyValue;
			}
			return defaultValue;
		}
Exemple #40
0
        bool GetBooleanProperty(BuildConfiguration buildConfig, string name, bool defaultValue)
        {
            string propertyValue = msbuildProject.GetProperty(buildConfig.Configuration, buildConfig.Platform, name);

            return(ConvertBooleanValue(propertyValue, defaultValue));
        }