Пример #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();
 }