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
14 instantiations of TaskPropertyInfo
Microsoft.Build (2)
Instance\TaskRegistry.cs (2)
1891UsingTaskParameters.Add(parameter.Name, new TaskPropertyInfo(parameter.Name, paramType, output, required)); 1935taskPropertyInfo = new TaskPropertyInfo(name, propertyType, output, required);
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
1308propertyInfos[i] = new TaskPropertyInfo(
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
202.Select(i => new TaskPropertyInfo(
Microsoft.Build.Tasks.UnitTests (10)
RoslynCodeTaskFactory_Tests.cs (10)
367new TaskPropertyInfo("Parameter1", typeof(string), output: false, required: true), 368new TaskPropertyInfo("Parameter2", typeof(string), output: true, required: false), 369new TaskPropertyInfo("Parameter3", typeof(string), output: true, required: true), 370new TaskPropertyInfo("Parameter4", typeof(ITaskItem), output: false, required: false), 371new TaskPropertyInfo("Parameter5", typeof(ITaskItem[]), output: false, required: false), 476new TaskPropertyInfo("Parameter1", typeof(string), output: false, required: true), 477new TaskPropertyInfo("Parameter2", typeof(string), output: true, required: false), 478new TaskPropertyInfo("Parameter3", typeof(string), output: true, required: true), 479new TaskPropertyInfo("Parameter4", typeof(ITaskItem), output: false, required: false), 480new TaskPropertyInfo("Parameter5", typeof(ITaskItem[]), output: false, required: false),
102 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)
462TaskPropertyInfo parameter = _taskFactoryWrapper.GetProperty(parameterName); 463foreach (TaskPropertyInfo prop in _taskFactoryWrapper.TaskFactoryLoadedType.Properties) 727private bool SetTaskItemParameter(TaskPropertyInfo parameter, ITaskItem item) 735private bool SetValueParameter(TaskPropertyInfo parameter, Type parameterType, string expandedParameterValue) 755private bool SetParameterArray(TaskPropertyInfo parameter, Type parameterType, IList<TaskItem> taskItems, ElementLocation parameterLocation) 831private ITaskItem[] GetItemOutputs(TaskPropertyInfo parameter) 846private string[] GetValueOutputs(TaskPropertyInfo parameter) 1095TaskPropertyInfo parameter = null; 1194TaskPropertyInfo parameter, 1277private void EnsureParameterInitialized(TaskPropertyInfo parameter, Lookup lookup) 1322TaskPropertyInfo parameter, 1361TaskPropertyInfo parameter, 1435private void GatherTaskItemOutputs(bool outputTargetIsItem, string outputTargetName, ITaskItem[] outputs, ElementLocation parameterLocation, TaskPropertyInfo parameter) 1601private 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)
130public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 155public bool Initialize(string taskName, IDictionary<string, string> factoryIdentityParameters, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 164public TaskPropertyInfo[] GetTaskParameters() 266IDictionary<string, TaskPropertyInfo> taskParameters,
Instance\TaskFactories\TaskHostTask.cs (2)
231public void SetPropertyValue(TaskPropertyInfo property, object value) 239public object GetPropertyValue(TaskPropertyInfo property)
Instance\TaskFactoryWrapper.cs (12)
40public readonly IReadOnlyDictionary<string, TaskPropertyInfo> PropertyInfoCache; 46IReadOnlyDictionary<string, TaskPropertyInfo> propertyInfoCache) 187public TaskPropertyInfo? GetProperty(string propertyName) 189TaskPropertyInfo? propertyInfo; 209internal void SetPropertyValue(ITask task, TaskPropertyInfo property, object value) 229internal object? GetPropertyValue(ITask task, TaskPropertyInfo property) 271Dictionary<string, TaskPropertyInfo>? propertyInfoCache = null; 277TaskPropertyInfo[] propertyInfos = _taskFactory.GetTaskParameters(); 284TaskPropertyInfo propertyInfo = propertyInfos[i]; 294propertyInfoCache = new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase); 341(IReadOnlyDictionary<string, TaskPropertyInfo>?)propertyInfoCache ?? ReadOnlyEmptyDictionary<string, TaskPropertyInfo>.Instance);
Instance\TaskRegistry.cs (6)
1694private IDictionary<string, TaskPropertyInfo> _usingTaskParameters; 1716internal IDictionary<string, TaskPropertyInfo> UsingTaskParameters 1718get { return _usingTaskParameters ?? ReadOnlyEmptyDictionary<string, TaskPropertyInfo>.Instance; } 1808_usingTaskParameters ??= new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase); 1900translator.TranslateDictionary(ref _usingTaskParameters, TranslatorForTaskParametersKey, TranslatorForTaskParameterValue, count => new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase)); 1910private static void TranslatorForTaskParameterValue(ITranslator translator, ref TaskPropertyInfo taskPropertyInfo)
Microsoft.Build.Engine.UnitTests (25)
BackEnd\AssemblyTaskFactory_Tests.cs (8)
60taskFactory.InitializeFactory(null, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 72taskFactory.InitializeFactory(_loadInfo, null, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 84taskFactory.InitializeFactory(_loadInfo, String.Empty, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 96taskFactory.InitializeFactory(_loadInfo, "RandomTask", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 110taskFactory.Initialize(String.Empty, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null); 124taskFactory.Initialize(String.Empty, null, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null); 215TaskPropertyInfo[] propertyInfos = _taskFactory.GetTaskParameters(); 725_loadedType = _taskFactory.InitializeFactory(_loadInfo, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, factoryParameters, explicitlyLaunchTaskHost, null, ElementLocation.Create("NONE"), String.Empty);
BackEnd\TaskBuilderTestTask.cs (5)
1236public object GetPropertyValue(TaskPropertyInfo property) 1249public void SetPropertyValue(TaskPropertyInfo property, object value) 1294public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> taskParameters, string taskElementContents, IBuildEngine taskLoggingHost) 1302public TaskPropertyInfo[] GetTaskParameters() 1305var 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.CodeAnalysis.UnitTests (5)
TargetTests.cs (5)
1009private TaskPropertyInfo[]? _props; 1015public TaskPropertyInfo[]? GetTaskParameters() => _props; 1017public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 1031public object GetPropertyValue(TaskPropertyInfo property) => null!; 1033public void SetPropertyValue(TaskPropertyInfo property, object value) { }
Microsoft.Build.Tasks.Core (10)
CodeTaskFactory.cs (2)
1127public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 1140public TaskPropertyInfo[] GetTaskParameters()
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (6)
115private TaskPropertyInfo[] _parameters; 148public TaskPropertyInfo[] GetTaskParameters() 157public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 218internal static string GetSourceCode(RoslynCodeTaskFactoryTaskInfo taskInfo, ICollection<TaskPropertyInfo> parameters) 234foreach (TaskPropertyInfo propertyInfo in parameters) 306internal static bool TryLoadTaskBody(TaskLoggingHelper log, string taskName, string taskBody, ICollection<TaskPropertyInfo> parameters, out RoslynCodeTaskFactoryTaskInfo taskInfo)
XamlTaskFactory\XamlTaskFactory.cs (2)
272public bool Initialize(string taskName, IDictionary<string, TaskPropertyInfo> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) 285public TaskPropertyInfo[] GetTaskParameters()
Microsoft.Build.Tasks.UnitTests (12)
RoslynCodeTaskFactory_Tests.cs (12)
252new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase), 270new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase), 365ICollection<TaskPropertyInfo> parameters = new List<TaskPropertyInfo> 474ICollection<TaskPropertyInfo> parameters = new List<TaskPropertyInfo> 927bool success = RoslynCodeTaskFactory.TryLoadTaskBody(log, TaskName, taskBody, new List<TaskPropertyInfo>(), out RoslynCodeTaskFactoryTaskInfo _); 938ICollection<TaskPropertyInfo> parameters = null, 953bool success = RoslynCodeTaskFactory.TryLoadTaskBody(log, TaskName, taskBody, parameters ?? new List<TaskPropertyInfo>(), out RoslynCodeTaskFactoryTaskInfo taskInfo); 1021bool success = factory.Initialize(taskName, new Dictionary<string, TaskPropertyInfo>(), taskBody, buildEngine); 1060bool success = factory.Initialize("TestTaskForced", new Dictionary<string, TaskPropertyInfo>(), taskCode, mockEngine); 1090bool success = factory.Initialize("TestTaskBoth", new Dictionary<string, TaskPropertyInfo>(), taskBody, buildEngine);
MSBuild (1)
ReflectableTaskPropertyInfo.cs (1)
34internal ReflectableTaskPropertyInfo(TaskPropertyInfo taskPropertyInfo, Type taskType)