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