当前位置: 首页>>代码示例>>C#>>正文


C# BuildPropertyGroup.AddNewProperty方法代码示例

本文整理汇总了C#中Microsoft.Build.BuildEngine.BuildPropertyGroup.AddNewProperty方法的典型用法代码示例。如果您正苦于以下问题:C# BuildPropertyGroup.AddNewProperty方法的具体用法?C# BuildPropertyGroup.AddNewProperty怎么用?C# BuildPropertyGroup.AddNewProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Microsoft.Build.BuildEngine.BuildPropertyGroup的用法示例。


在下文中一共展示了BuildPropertyGroup.AddNewProperty方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnSetupReleaseGroup

 protected override void OnSetupReleaseGroup(BuildPropertyGroup group)
 {
     group.AddNewProperty("DefineDebug", "false");
     group.AddNewProperty("DefineTrace", "true");
     group.AddNewProperty("DocumentationFile", Name + ".xml");
     group.AddNewProperty("NoWarn", "42016,41999,42017,42018,42019,42032,42036,42020,42021,42022");
 }
开发者ID:Saleslogix,项目名称:SLXMigration,代码行数:7,代码来源:VBNetProject.cs

示例2: OnSetupDebugGroup

 protected override void OnSetupDebugGroup(BuildPropertyGroup group)
 {
     group.AddNewProperty("Optimize", "false");
     group.AddNewProperty("DefineConstants", "DEBUG;TRACE");
     group.AddNewProperty("ErrorReport", "prompt");
     group.AddNewProperty("WarningLevel", "4");
 }
开发者ID:Saleslogix,项目名称:SLXMigration,代码行数:7,代码来源:CSharpProject.cs

示例3: TestAddNewProperty1

		public void TestAddNewProperty1 ()
		{
			string name = "name";
			string value = "value";

			bpg = new BuildPropertyGroup ();

			bpg.AddNewProperty (name, value);
		}
开发者ID:nlhepler,项目名称:mono,代码行数:9,代码来源:BuildPropertyGroupTest.cs

示例4: OnSetupGeneralGroup

 protected override void OnSetupGeneralGroup(BuildPropertyGroup group)
 {
     group.AddNewProperty("MyType", "Windows");
 }
开发者ID:Saleslogix,项目名称:SLXMigration,代码行数:4,代码来源:VBNetProject.cs

示例5: Clone

		public BuildPropertyGroup Clone (bool deepClone)
		{
			BuildPropertyGroup bpg = new BuildPropertyGroup (propertyGroup, parentProject, importedProject, read_only);
			if (FromXml) {
				foreach (BuildProperty bp in properties) {
					if (deepClone)
						bpg.AddProperty (bp.Clone (true));
					else
						bpg.AddNewProperty (bp.Name, bp.FinalValue);
				}
			} else {
				foreach (BuildProperty bp in propertiesByName.Values) {
					if (deepClone)
						bpg.AddProperty (bp.Clone (true));
					else
						bpg.AddNewProperty (bp.Name, bp.FinalValue);
				}
			}

			return bpg;
		}
开发者ID:nlhepler,项目名称:mono,代码行数:21,代码来源:BuildPropertyGroup.cs

示例6: OnSetupReleaseGroup

 protected override void OnSetupReleaseGroup(BuildPropertyGroup group)
 {
     group.AddNewProperty("DefineConstants", "TRACE");
     group.AddNewProperty("ErrorReport", "prompt");
     group.AddNewProperty("WarningLevel", "4");
 }
开发者ID:Saleslogix,项目名称:SLXMigration,代码行数:6,代码来源:CSharpProject.cs

示例7: ConfigureProject

        protected virtual void ConfigureProject(Project proj)
        {
            _globalProperties = proj.AddNewPropertyGroup(false);
            _globalProperties.AddNewProperty("OutputType", "Library");
            _globalProperties.AddNewProperty("AssemblyName", AssemblyName);
            _globalProperties.AddNewProperty("OutputPath", OutputPath);
            _globalProperties.AddNewProperty("Optimize", "true");
            _globalProperties.AddNewProperty("NoWarn", "1591,0168");
            _globalProperties.AddNewProperty("DocumentationFile", string.Concat(OutputPath, "\\", AssemblyName, ".XML"));
            proj.AddNewImport(@"$(MSBuildBinPath)\Microsoft.CSharp.targets", String.Empty);

            _references = proj.AddNewItemGroup();
        }
开发者ID:jboyce,项目名称:LinqToSData,代码行数:13,代码来源:MSBuildDeploymentPackage.cs

示例8: AddNewPropertyToInMemoryGroup

        public void AddNewPropertyToInMemoryGroup()
        {
            BuildPropertyGroup group = new BuildPropertyGroup();
            group.SetProperty("n1", "v1");

            group.AddNewProperty("n3", "v3");
        }
开发者ID:nikson,项目名称:msbuild,代码行数:7,代码来源:BuildPropertyGroup_Tests.cs

示例9: AddNewProperty_InvalidOp

 public void AddNewProperty_InvalidOp()
 {
     BuildPropertyGroup buildPropertyGroup = new BuildPropertyGroup();
     buildPropertyGroup.AddNewProperty("n", "v");
 }
开发者ID:nikson,项目名称:msbuild,代码行数:5,代码来源:Project_Tests.cs


注:本文中的Microsoft.Build.BuildEngine.BuildPropertyGroup.AddNewProperty方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。