2 types derived from TaskPropertyInfo
Microsoft.Build (1)
Instance\ReflectableTaskPropertyInfo.cs (1)
17internal class ReflectableTaskPropertyInfo : TaskPropertyInfo
MSBuild (1)
ReflectableTaskPropertyInfo.cs (1)
17internal class ReflectableTaskPropertyInfo : TaskPropertyInfo
15 instantiations of TaskPropertyInfo
Microsoft.Build (2)
Instance\TaskRegistry.cs (2)
1761UsingTaskParameters.Add(parameter.Name, new TaskPropertyInfo(parameter.Name, paramType, output, required)); 1805taskPropertyInfo = new TaskPropertyInfo(name, propertyType, output, required);
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
1310propertyInfos[i] = new TaskPropertyInfo(
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
189.Select(i => new TaskPropertyInfo(
Microsoft.Build.Tasks.UnitTests (10)
RoslynCodeTaskFactory_Tests.cs (10)
235new TaskPropertyInfo("Parameter1", typeof(string), output: false, required: true), 236new TaskPropertyInfo("Parameter2", typeof(string), output: true, required: false), 237new TaskPropertyInfo("Parameter3", typeof(string), output: true, required: true), 238new TaskPropertyInfo("Parameter4", typeof(ITaskItem), output: false, required: false), 239new TaskPropertyInfo("Parameter5", typeof(ITaskItem[]), output: false, required: false), 344new TaskPropertyInfo("Parameter1", typeof(string), output: false, required: true), 345new TaskPropertyInfo("Parameter2", typeof(string), output: true, required: false), 346new TaskPropertyInfo("Parameter3", typeof(string), output: true, required: true), 347new TaskPropertyInfo("Parameter4", typeof(ITaskItem), output: false, required: false), 348new TaskPropertyInfo("Parameter5", typeof(ITaskItem[]), output: false, required: false),
MonoTargetsTasks (1)
JsonToItemsTaskFactory\JsonToItemsTaskFactory.cs (1)
79_taskProperties[0] = new TaskPropertyInfo(nameof(JsonFilePath), typeof(string), output: false, required: true);
100 references to TaskPropertyInfo
Microsoft.Build (42)
BackEnd\Components\RequestBuilder\IntrinsicTasks\IntrinsicTaskFactory.cs (3)
48public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 61public TaskPropertyInfo[] GetTaskParameters() 64var propertyInfos = new TaskPropertyInfo[infos.Length];
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (14)
432TaskPropertyInfo parameter = _taskFactoryWrapper.GetProperty(parameterName); 433foreach (TaskPropertyInfo prop in _taskFactoryWrapper.TaskFactoryLoadedType.Properties) 697private bool SetTaskItemParameter(TaskPropertyInfo parameter, ITaskItem item) 705private bool SetValueParameter(TaskPropertyInfo parameter, Type parameterType, string expandedParameterValue) 725private bool SetParameterArray(TaskPropertyInfo parameter, Type parameterType, IList<TaskItem> taskItems, ElementLocation parameterLocation) 801private ITaskItem[] GetItemOutputs(TaskPropertyInfo parameter) 816private string[] GetValueOutputs(TaskPropertyInfo parameter) 1033TaskPropertyInfo parameter = null; 1132TaskPropertyInfo parameter, 1215private void EnsureParameterInitialized(TaskPropertyInfo parameter, Lookup lookup) 1256TaskPropertyInfo parameter, 1295TaskPropertyInfo parameter, 1369private void GatherTaskItemOutputs(bool outputTargetIsItem, string outputTargetName, ITaskItem[] outputs, ElementLocation parameterLocation, TaskPropertyInfo parameter) 1507private void GatherArrayStringAndValueOutputs(bool outputTargetIsItem, string outputTargetName, string[] outputs, ElementLocation parameterLocation, TaskPropertyInfo parameter)
Instance\ReflectableTaskPropertyInfo.cs (1)
34internal ReflectableTaskPropertyInfo(TaskPropertyInfo taskPropertyInfo, Type taskType)
Instance\TaskFactories\AssemblyTaskFactory.cs (4)
116public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 141public bool Initialize(string taskName, IDictionary<string, string> factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 150public TaskPropertyInfo[] GetTaskParameters() 252IDictionary<string, TaskPropertyInfo> taskParameters,
Instance\TaskFactories\TaskHostTask.cs (2)
201public void SetPropertyValue(TaskPropertyInfo property, object value) 209public object GetPropertyValue(TaskPropertyInfo property)
Instance\TaskFactoryWrapper.cs (12)
40public readonly IReadOnlyDictionary<string, TaskPropertyInfo> PropertyInfoCache; 46IReadOnlyDictionary<string, TaskPropertyInfo> propertyInfoCache) 176public TaskPropertyInfo? GetProperty(string propertyName) 178TaskPropertyInfo? propertyInfo; 198internal void SetPropertyValue(ITask task, TaskPropertyInfo property, object value) 218internal object? GetPropertyValue(ITask task, TaskPropertyInfo property) 260Dictionary<string, TaskPropertyInfo>? propertyInfoCache = null; 266TaskPropertyInfo[] propertyInfos = _taskFactory.GetTaskParameters(); 273TaskPropertyInfo propertyInfo = propertyInfos[i]; 283propertyInfoCache = new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase); 330(IReadOnlyDictionary<string, TaskPropertyInfo>?)propertyInfoCache ?? ReadOnlyEmptyDictionary<string, TaskPropertyInfo>.Instance);
Instance\TaskRegistry.cs (6)
1564private IDictionary<string, TaskPropertyInfo> _usingTaskParameters; 1586internal IDictionary<string, TaskPropertyInfo> UsingTaskParameters 1588get { return _usingTaskParameters ?? ReadOnlyEmptyDictionary<string, TaskPropertyInfo>.Instance; } 1678_usingTaskParameters ??= new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase); 1770translator.TranslateDictionary(ref _usingTaskParameters, TranslatorForTaskParametersKey, TranslatorForTaskParameterValue, count => new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase)); 1780private static void TranslatorForTaskParameterValue(ITranslator translator, ref TaskPropertyInfo taskPropertyInfo)
Microsoft.Build.Engine.UnitTests (25)
BackEnd\AssemblyTaskFactory_Tests.cs (8)
59taskFactory.InitializeFactory(null, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 71taskFactory.InitializeFactory(_loadInfo, null, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 83taskFactory.InitializeFactory(_loadInfo, String.Empty, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 95taskFactory.InitializeFactory(_loadInfo, "RandomTask", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 109taskFactory.Initialize(String.Empty, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null); 123taskFactory.Initialize(String.Empty, null, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null); 214TaskPropertyInfo[] propertyInfos = _taskFactory.GetTaskParameters(); 691_loadedType = _taskFactory.InitializeFactory(_loadInfo, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, factoryParameters, explicitlyLaunchTaskHost, null, ElementLocation.Create("NONE"), String.Empty);
BackEnd\TaskBuilderTestTask.cs (5)
1238public object GetPropertyValue(TaskPropertyInfo property) 1251public void SetPropertyValue(TaskPropertyInfo property, object value) 1296public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> taskParameters, string taskElementContents, IBuildEngine taskLoggingHost) 1304public TaskPropertyInfo[] GetTaskParameters() 1307var propertyInfos = new TaskPropertyInfo[infos.Length];
BackEnd\TaskRegistry_Tests.cs (8)
1324TaskPropertyInfo parameterInfo = inlineTaskRecord.UsingTaskParameters[defaultParameter.Name]; 1576Assert.False(((TaskPropertyInfo)registry.TaskRegistrations[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.UsingTaskParameters["ParameterWithAllAttributesHardCoded"]).Output); 1591Assert.False(((TaskPropertyInfo)registry.TaskRegistrations[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.UsingTaskParameters["ParameterWithAllAttributesHardCoded"]).Output); 1623Assert.False(((TaskPropertyInfo)registry.TaskRegistrations[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.UsingTaskParameters["ParameterWithAllAttributesHardCoded"]).Required); 1638Assert.False(((TaskPropertyInfo)registry.TaskRegistrations[new TaskRegistry.RegisteredTaskIdentity("Name", null)][0].ParameterGroupAndTaskBody.UsingTaskParameters["ParameterWithAllAttributesHardCoded"]).Required); 1701TaskPropertyInfo parameterInfo = inlineTaskRecord.UsingTaskParameters[filledOutAttributesParameter.Name]; 2338public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) => true; 2340public TaskPropertyInfo[] GetTaskParameters() => null;
TestComparers\TaskRegistryComparers.cs (4)
98internal sealed class TaskPropertyInfoComparer : IEqualityComparer<TaskPropertyInfo> 100public bool Equals(TaskPropertyInfo x, TaskPropertyInfo y) 110public int GetHashCode(TaskPropertyInfo obj)
Microsoft.Build.Framework (7)
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)
42bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost); 48TaskPropertyInfo[] GetTaskParameters();
ITaskFactory2.cs (1)
38bool Initialize(string taskName, IDictionary<string, string> factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost);
Microsoft.Build.Tasks.Core (10)
CodeTaskFactory.cs (2)
1031public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 1044public TaskPropertyInfo[] GetTaskParameters()
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (6)
107private TaskPropertyInfo[] _parameters; 140public TaskPropertyInfo[] GetTaskParameters() 146public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 205internal static string GetSourceCode(RoslynCodeTaskFactoryTaskInfo taskInfo, ICollection<TaskPropertyInfo> parameters) 221foreach (TaskPropertyInfo propertyInfo in parameters) 293internal static bool TryLoadTaskBody(TaskLoggingHelper log, string taskName, string taskBody, ICollection<TaskPropertyInfo> parameters, out RoslynCodeTaskFactoryTaskInfo taskInfo)
XamlTaskFactory\XamlTaskFactory.cs (2)
249public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 262public TaskPropertyInfo[] GetTaskParameters()
Microsoft.Build.Tasks.UnitTests (7)
RoslynCodeTaskFactory_Tests.cs (7)
233ICollection<TaskPropertyInfo> parameters = new List<TaskPropertyInfo> 342ICollection<TaskPropertyInfo> parameters = new List<TaskPropertyInfo> 778bool success = RoslynCodeTaskFactory.TryLoadTaskBody(log, TaskName, taskBody, new List<TaskPropertyInfo>(), out RoslynCodeTaskFactoryTaskInfo _); 789ICollection<TaskPropertyInfo> parameters = null, 804bool success = RoslynCodeTaskFactory.TryLoadTaskBody(log, TaskName, taskBody, parameters ?? new List<TaskPropertyInfo>(), out RoslynCodeTaskFactoryTaskInfo taskInfo);
MonoTargetsTasks (8)
JsonToItemsTaskFactory\JsonToItemsTaskFactory.cs (8)
59private TaskPropertyInfo[]? _taskProperties; 70public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string? taskBody, IBuildEngine taskFactoryLoggingHost) 78_taskProperties = new TaskPropertyInfo[parameterGroup.Count + 1]; 84public TaskPropertyInfo[] GetTaskParameters() => _taskProperties!; 95internal bool ValidateParameterGroup(IDictionary<string, TaskPropertyInfo> parameterGroup, TaskLoggingHelper log) 101var propInfo = kvp.Value; 256public object? GetPropertyValue(TaskPropertyInfo property) 308public void SetPropertyValue(TaskPropertyInfo property, object? value)
MSBuild (1)
ReflectableTaskPropertyInfo.cs (1)
34internal ReflectableTaskPropertyInfo(TaskPropertyInfo taskPropertyInfo, Type taskType)