1 type derived from TaskPropertyInfo
Microsoft.Build.Framework (1)
ReflectableTaskPropertyInfo.cs (1)
17internal class ReflectableTaskPropertyInfo : TaskPropertyInfo
3 instantiations of TaskPropertyInfo
Microsoft.Build (2)
Instance\TaskRegistry.cs (2)
1646UsingTaskParameters.Add(parameter.Name, new TaskPropertyInfo(parameter.Name, paramType, output, required)); 1692taskPropertyInfo = new TaskPropertyInfo(name, propertyType, output, required);
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
269.Select(i => new TaskPropertyInfo(
69 references to TaskPropertyInfo
Microsoft.Build (49)
BackEnd\Components\RequestBuilder\IntrinsicTasks\IntrinsicTaskFactory.cs (3)
50public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 60public TaskPropertyInfo[] GetTaskParameters() 63var propertyInfos = new TaskPropertyInfo[infos.Length];
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (19)
647TaskPropertyInfo parameter = _taskFactoryWrapper.GetProperty(parameterName); 648foreach (TaskPropertyInfo prop in _taskFactoryWrapper.TaskFactoryLoadedType.Properties) 961private bool SetTaskItemParameter(TaskPropertyInfo parameter, ITaskItem item) 969private bool SetValueParameter(TaskPropertyInfo parameter, Type parameterType, string expandedParameterValue) 1003private bool SetParameterArray(TaskPropertyInfo parameter, Type parameterType, IList<TaskItem> taskItems, ElementLocation parameterLocation) 1122private ITaskItem[] GetItemOutputs(TaskPropertyInfo parameter) 1155private string[] GetValueOutputs(TaskPropertyInfo parameter) 1411TaskPropertyInfo parameter = null; 1543/// For an in-proc task the property's <see cref="TaskPropertyInfo.PropertyType"/> is already the live, 1550private static Type ResolveTaskParameterType(LoadedType loadedType, TaskPropertyInfo parameter, int indexOfParameter) 1575private static Type ResolveTaskParameterTypeByName(LoadedType loadedType, TaskPropertyInfo parameter, int indexOfParameter) 1621private static string GetTaskParameterTypeName(TaskPropertyInfo parameter) => 1630TaskPropertyInfo parameter, 1725private void EnsureParameterInitialized(TaskPropertyInfo parameter, Lookup lookup) 1770TaskPropertyInfo parameter, 1818TaskPropertyInfo parameter, 1835TaskPropertyInfo parameter, 1898private void GatherTaskItemOutputs(bool outputTargetIsItem, string outputTargetName, ITaskItem[] outputs, ElementLocation parameterLocation, TaskPropertyInfo parameter) 2074private void GatherArrayStringAndValueOutputs(bool outputTargetIsItem, string outputTargetName, string[] outputs, ElementLocation parameterLocation, TaskPropertyInfo parameter)
Instance\TaskFactories\AssemblyTaskFactory.cs (5)
117public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 140public bool Initialize(string taskName, IDictionary<string, string> factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 146public TaskPropertyInfo[] GetTaskParameters() 242IDictionary<string, TaskPropertyInfo> taskParameters, 765public bool Initialize(string taskName, TaskHostParameters factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
Instance\TaskFactories\RegisteredTaskFactory.cs (2)
61public TaskPropertyInfo[] GetTaskParameters() => _loadedType.Properties; 65public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) => true;
Instance\TaskFactories\TaskHostTask.cs (2)
271public void SetPropertyValue(TaskPropertyInfo property, object value) 279public object GetPropertyValue(TaskPropertyInfo property)
Instance\TaskFactoryWrapper.cs (12)
40public readonly IReadOnlyDictionary<string, TaskPropertyInfo> PropertyInfoCache; 46IReadOnlyDictionary<string, TaskPropertyInfo> propertyInfoCache) 180public TaskPropertyInfo? GetProperty(string propertyName) 182TaskPropertyInfo? propertyInfo; 202internal void SetPropertyValue(ITask task, TaskPropertyInfo property, object value) 222internal object? GetPropertyValue(ITask task, TaskPropertyInfo property) 254Dictionary<string, TaskPropertyInfo>? propertyInfoCache = null; 260TaskPropertyInfo[] propertyInfos = _taskFactory.GetTaskParameters(); 267TaskPropertyInfo propertyInfo = propertyInfos[i]; 277propertyInfoCache = new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase); 324(IReadOnlyDictionary<string, TaskPropertyInfo>?)propertyInfoCache ?? ReadOnlyEmptyDictionary<string, TaskPropertyInfo>.Instance);
Instance\TaskRegistry.cs (6)
1411private IDictionary<string, TaskPropertyInfo> _usingTaskParameters; 1447internal IDictionary<string, TaskPropertyInfo> UsingTaskParameters 1449get { return _usingTaskParameters ?? ReadOnlyEmptyDictionary<string, TaskPropertyInfo>.Instance; } 1563_usingTaskParameters ??= new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase); 1655translator.TranslateDictionary(ref _usingTaskParameters, TranslatorForTaskParametersKey, TranslatorForTaskParameterValue, count => new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase)); 1667private static void TranslatorForTaskParameterValue(ITranslator translator, ref TaskPropertyInfo taskPropertyInfo)
Microsoft.Build.Framework (9)
IGeneratedTask.cs (4)
19/// <param name="value">The value to set. The caller is responsible to type-coerce this value to match the property's <see cref="TaskPropertyInfo.PropertyType"/>.</param> 24void SetPropertyValue(TaskPropertyInfo property, object value); 31/// The value of the property, the value's type will match the type given by <see cref="TaskPropertyInfo.PropertyType"/>. 38object GetPropertyValue(TaskPropertyInfo property);
ITaskFactory.cs (2)
45bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost); 51TaskPropertyInfo[] GetTaskParameters();
ITaskFactory2.cs (1)
40bool Initialize(string taskName, IDictionary<string, string> factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost);
ITaskFactory3.cs (1)
52bool Initialize(string taskName, TaskHostParameters factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost);
ReflectableTaskPropertyInfo.cs (1)
36TaskPropertyInfo taskPropertyInfo,
Microsoft.Build.Tasks.Core (11)
CodeTaskFactory.cs (2)
1144public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 1157public TaskPropertyInfo[] GetTaskParameters()
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (7)
121private TaskPropertyInfo[] _parameters; 186public TaskPropertyInfo[] GetTaskParameters() 196public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 248private bool TryResolveCompiledTaskType(Assembly assembly, IDictionary<string, TaskPropertyInfo> parameterGroup, RoslynCodeTaskFactoryTaskInfo taskInfo, string taskName) 284internal static string GetSourceCode(RoslynCodeTaskFactoryTaskInfo taskInfo, ICollection<TaskPropertyInfo> parameters) 300foreach (TaskPropertyInfo propertyInfo in parameters) 373internal static bool TryLoadTaskBody(TaskLoggingHelper log, string taskName, string taskBody, ICollection<TaskPropertyInfo> parameters, IBuildEngine taskFactoryEngineContext, out RoslynCodeTaskFactoryTaskInfo taskInfo)
XamlTaskFactory\XamlTaskFactory.cs (2)
278public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 291public TaskPropertyInfo[] GetTaskParameters()