示例#1
0
        public virtual string GetConfigurationProperty(string propertyName, bool resetCache)
        {
            MSBuildExecution.ProjectPropertyInstance property = GetMsBuildProperty(propertyName, resetCache);
            if (property == null)
            {
                return(null);
            }

            return(property.EvaluatedValue);
        }
示例#2
0
        public BuildRequestData(string projectFullPath, IDictionary <string, string> globalProperties, string toolsVersion, string[] targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags)
            : this(targetsToBuild, hostServices, flags)
        {
            ErrorUtilities.VerifyThrowArgumentLength(projectFullPath, nameof(projectFullPath));
            ErrorUtilities.VerifyThrowArgumentNull(globalProperties, nameof(globalProperties));

            ProjectFullPath            = FileUtilities.NormalizePath(projectFullPath);
            GlobalPropertiesDictionary = new PropertyDictionary <ProjectPropertyInstance>(globalProperties.Count);
            foreach (KeyValuePair <string, string> propertyPair in globalProperties)
            {
                GlobalPropertiesDictionary.Set(ProjectPropertyInstance.Create(propertyPair.Key, propertyPair.Value));
            }

            ExplicitlySpecifiedToolsVersion = toolsVersion;
        }
示例#3
0
 public static string GetPropertyValueEscaped(ProjectPropertyInstance property)
 {
     // WTF happens here.
     //return ProjectCollection.Escape (property.EvaluatedValue);
     return(property.EvaluatedValue);
 }
示例#4
0
		public static string GetPropertyValueEscaped (ProjectPropertyInstance property)
		{
			throw new NotImplementedException ();
		}
示例#5
0
 public static string GetPropertyValueEscaped(ProjectPropertyInstance property)
 {
     throw new NotImplementedException();
 }