本文整理汇总了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");
}
示例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");
}
示例3: TestAddNewProperty1
public void TestAddNewProperty1 ()
{
string name = "name";
string value = "value";
bpg = new BuildPropertyGroup ();
bpg.AddNewProperty (name, value);
}
示例4: OnSetupGeneralGroup
protected override void OnSetupGeneralGroup(BuildPropertyGroup group)
{
group.AddNewProperty("MyType", "Windows");
}
示例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;
}
示例6: OnSetupReleaseGroup
protected override void OnSetupReleaseGroup(BuildPropertyGroup group)
{
group.AddNewProperty("DefineConstants", "TRACE");
group.AddNewProperty("ErrorReport", "prompt");
group.AddNewProperty("WarningLevel", "4");
}
示例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();
}
示例8: AddNewPropertyToInMemoryGroup
public void AddNewPropertyToInMemoryGroup()
{
BuildPropertyGroup group = new BuildPropertyGroup();
group.SetProperty("n1", "v1");
group.AddNewProperty("n3", "v3");
}
示例9: AddNewProperty_InvalidOp
public void AddNewProperty_InvalidOp()
{
BuildPropertyGroup buildPropertyGroup = new BuildPropertyGroup();
buildPropertyGroup.AddNewProperty("n", "v");
}