예제 #1
0
 public void SetProperty <T>(string propertyName, T value,
                             bool treatPropertyValueAsLiteral,
                             PropertyStorageLocations location)
 {
     project.SetProperty(configuration, platform, propertyName,
                         GenericConverter.ToString(value), location, treatPropertyValueAsLiteral);
 }
예제 #2
0
            public bool Save(MSBuildBasedProject project, string configuration, string platform)
            {
                string newValue = GenericConverter.ToString(val);

                project.SetProperty(configuration, platform, propertyName, newValue, location, treatPropertyValueAsLiteral);
                return(true);
            }
예제 #3
0
 /// <summary>
 /// Sets the value of the specified meta data item. The value is escaped before
 /// setting it to ensure characters like ';' or '$' are not interpreted by MSBuild.
 /// </summary>
 public void SetEvaluatedMetadata <T>(string metadataName, T value)
 {
     SetEvaluatedMetadata(metadataName, GenericConverter.ToString(value));
 }