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)
1851UsingTaskParameters.Add(parameter.Name, new TaskPropertyInfo(parameter.Name, paramType, output, required)); 1897taskPropertyInfo = new TaskPropertyInfo(name, propertyType, output, required);
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
240.Select(i => new TaskPropertyInfo(
67 references to TaskPropertyInfo
Microsoft.Build (47)
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 (17)
649TaskPropertyInfo parameter = _taskFactoryWrapper.GetProperty(parameterName); 650foreach (TaskPropertyInfo prop in _taskFactoryWrapper.TaskFactoryLoadedType.Properties) 967private bool SetTaskItemParameter(TaskPropertyInfo parameter, ITaskItem item) 975private bool SetValueParameter(TaskPropertyInfo parameter, Type parameterType, string expandedParameterValue) 1009private bool SetParameterArray(TaskPropertyInfo parameter, Type parameterType, IList<TaskItem> taskItems, ElementLocation parameterLocation) 1128private ITaskItem[] GetItemOutputs(TaskPropertyInfo parameter) 1161private string[] GetValueOutputs(TaskPropertyInfo parameter) 1414TaskPropertyInfo parameter = null; 1511/// For an in-proc task the property's <see cref="TaskPropertyInfo.PropertyType"/> is already the live, 1518private static Type ResolveTaskParameterType(LoadedType loadedType, TaskPropertyInfo parameter, int indexOfParameter) 1538private static Type ResolveTaskParameterTypeByName(LoadedType loadedType, TaskPropertyInfo parameter, int indexOfParameter) 1550TaskPropertyInfo parameter, 1641private void EnsureParameterInitialized(TaskPropertyInfo parameter, Lookup lookup) 1686TaskPropertyInfo parameter, 1725TaskPropertyInfo parameter, 1799private void GatherTaskItemOutputs(bool outputTargetIsItem, string outputTargetName, ITaskItem[] outputs, ElementLocation parameterLocation, TaskPropertyInfo parameter) 1965private void GatherArrayStringAndValueOutputs(bool outputTargetIsItem, string outputTargetName, string[] outputs, ElementLocation parameterLocation, TaskPropertyInfo parameter)
Instance\TaskFactories\AssemblyTaskFactory.cs (5)
115public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 138public bool Initialize(string taskName, IDictionary<string, string> factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 144public TaskPropertyInfo[] GetTaskParameters() 240IDictionary<string, TaskPropertyInfo> taskParameters, 758public bool Initialize(string taskName, TaskHostParameters factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
Instance\TaskFactories\RegisteredTaskFactory.cs (2)
57public TaskPropertyInfo[] GetTaskParameters() => _loadedType.Properties; 61public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) => true;
Instance\TaskFactories\TaskHostTask.cs (2)
251public void SetPropertyValue(TaskPropertyInfo property, object value) 259public 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)
1616private IDictionary<string, TaskPropertyInfo> _usingTaskParameters; 1652internal IDictionary<string, TaskPropertyInfo> UsingTaskParameters 1654get { return _usingTaskParameters ?? ReadOnlyEmptyDictionary<string, TaskPropertyInfo>.Instance; } 1768_usingTaskParameters ??= new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase); 1860translator.TranslateDictionary(ref _usingTaskParameters, TranslatorForTaskParametersKey, TranslatorForTaskParameterValue, count => new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase)); 1872private 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)
120private TaskPropertyInfo[] _parameters; 169public TaskPropertyInfo[] GetTaskParameters() 179public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 219private bool TryResolveCompiledTaskType(Assembly assembly, IDictionary<string, TaskPropertyInfo> parameterGroup, RoslynCodeTaskFactoryTaskInfo taskInfo, string taskName) 255internal static string GetSourceCode(RoslynCodeTaskFactoryTaskInfo taskInfo, ICollection<TaskPropertyInfo> parameters) 271foreach (TaskPropertyInfo propertyInfo in parameters) 344internal 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()