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)
1761
UsingTaskParameters.Add(parameter.Name, new
TaskPropertyInfo
(parameter.Name, paramType, output, required));
1805
taskPropertyInfo = new
TaskPropertyInfo
(name, propertyType, output, required);
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
1310
propertyInfos[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)
235
new
TaskPropertyInfo
("Parameter1", typeof(string), output: false, required: true),
236
new
TaskPropertyInfo
("Parameter2", typeof(string), output: true, required: false),
237
new
TaskPropertyInfo
("Parameter3", typeof(string), output: true, required: true),
238
new
TaskPropertyInfo
("Parameter4", typeof(ITaskItem), output: false, required: false),
239
new
TaskPropertyInfo
("Parameter5", typeof(ITaskItem[]), output: false, required: false),
344
new
TaskPropertyInfo
("Parameter1", typeof(string), output: false, required: true),
345
new
TaskPropertyInfo
("Parameter2", typeof(string), output: true, required: false),
346
new
TaskPropertyInfo
("Parameter3", typeof(string), output: true, required: true),
347
new
TaskPropertyInfo
("Parameter4", typeof(ITaskItem), output: false, required: false),
348
new
TaskPropertyInfo
("Parameter5", typeof(ITaskItem[]), output: false, required: false),
97 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)
432
TaskPropertyInfo
parameter = _taskFactoryWrapper.GetProperty(parameterName);
433
foreach (
TaskPropertyInfo
prop in _taskFactoryWrapper.TaskFactoryLoadedType.Properties)
697
private bool SetTaskItemParameter(
TaskPropertyInfo
parameter, ITaskItem item)
705
private bool SetValueParameter(
TaskPropertyInfo
parameter, Type parameterType, string expandedParameterValue)
725
private bool SetParameterArray(
TaskPropertyInfo
parameter, Type parameterType, IList<TaskItem> taskItems, ElementLocation parameterLocation)
801
private ITaskItem[] GetItemOutputs(
TaskPropertyInfo
parameter)
816
private string[] GetValueOutputs(
TaskPropertyInfo
parameter)
1033
TaskPropertyInfo
parameter = null;
1132
TaskPropertyInfo
parameter,
1215
private void EnsureParameterInitialized(
TaskPropertyInfo
parameter, Lookup lookup)
1256
TaskPropertyInfo
parameter,
1295
TaskPropertyInfo
parameter,
1369
private void GatherTaskItemOutputs(bool outputTargetIsItem, string outputTargetName, ITaskItem[] outputs, ElementLocation parameterLocation,
TaskPropertyInfo
parameter)
1507
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)
116
public bool Initialize(string taskName, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
141
public bool Initialize(string taskName, IDictionary<string, string> factoryIdentityParameters, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
150
public
TaskPropertyInfo
[] GetTaskParameters()
252
IDictionary<string,
TaskPropertyInfo
> taskParameters,
Instance\TaskFactories\TaskHostTask.cs (2)
201
public void SetPropertyValue(
TaskPropertyInfo
property, object value)
209
public object GetPropertyValue(
TaskPropertyInfo
property)
Instance\TaskFactoryWrapper.cs (12)
40
public readonly IReadOnlyDictionary<string,
TaskPropertyInfo
> PropertyInfoCache;
46
IReadOnlyDictionary<string,
TaskPropertyInfo
> propertyInfoCache)
176
public
TaskPropertyInfo
? GetProperty(string propertyName)
178
TaskPropertyInfo
? propertyInfo;
198
internal void SetPropertyValue(ITask task,
TaskPropertyInfo
property, object value)
218
internal object? GetPropertyValue(ITask task,
TaskPropertyInfo
property)
260
Dictionary<string,
TaskPropertyInfo
>? propertyInfoCache = null;
266
TaskPropertyInfo
[] propertyInfos = _taskFactory.GetTaskParameters();
273
TaskPropertyInfo
propertyInfo = propertyInfos[i];
283
propertyInfoCache = new Dictionary<string,
TaskPropertyInfo
>(StringComparer.OrdinalIgnoreCase);
330
(IReadOnlyDictionary<string,
TaskPropertyInfo
>?)propertyInfoCache ?? ReadOnlyEmptyDictionary<string,
TaskPropertyInfo
>.Instance);
Instance\TaskRegistry.cs (6)
1564
private IDictionary<string,
TaskPropertyInfo
> _usingTaskParameters;
1586
internal IDictionary<string,
TaskPropertyInfo
> UsingTaskParameters
1588
get { return _usingTaskParameters ?? ReadOnlyEmptyDictionary<string,
TaskPropertyInfo
>.Instance; }
1678
_usingTaskParameters ??= new Dictionary<string,
TaskPropertyInfo
>(StringComparer.OrdinalIgnoreCase);
1770
translator.TranslateDictionary(ref _usingTaskParameters, TranslatorForTaskParametersKey, TranslatorForTaskParameterValue, count => new Dictionary<string,
TaskPropertyInfo
>(StringComparer.OrdinalIgnoreCase));
1780
private static void TranslatorForTaskParameterValue(ITranslator translator, ref
TaskPropertyInfo
taskPropertyInfo)
Microsoft.Build.Engine.UnitTests (25)
BackEnd\AssemblyTaskFactory_Tests.cs (8)
59
taskFactory.InitializeFactory(null, "TaskToTestFactories", new Dictionary<string,
TaskPropertyInfo
>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
71
taskFactory.InitializeFactory(_loadInfo, null, new Dictionary<string,
TaskPropertyInfo
>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
83
taskFactory.InitializeFactory(_loadInfo, String.Empty, new Dictionary<string,
TaskPropertyInfo
>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
95
taskFactory.InitializeFactory(_loadInfo, "RandomTask", new Dictionary<string,
TaskPropertyInfo
>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
109
taskFactory.Initialize(String.Empty, new Dictionary<string,
TaskPropertyInfo
>(), String.Empty, null);
123
taskFactory.Initialize(String.Empty, null, new Dictionary<string,
TaskPropertyInfo
>(), String.Empty, null);
214
TaskPropertyInfo
[] 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)
1238
public object GetPropertyValue(
TaskPropertyInfo
property)
1251
public void SetPropertyValue(
TaskPropertyInfo
property, object value)
1296
public bool Initialize(string taskName, IDictionary<string,
TaskPropertyInfo
> taskParameters, string taskElementContents, IBuildEngine taskLoggingHost)
1304
public
TaskPropertyInfo
[] GetTaskParameters()
1307
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)
1008
private
TaskPropertyInfo
[]? _props;
1014
public
TaskPropertyInfo
[]? GetTaskParameters() => _props;
1016
public bool Initialize(string taskName, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
1030
public object GetPropertyValue(
TaskPropertyInfo
property) => null!;
1032
public void SetPropertyValue(
TaskPropertyInfo
property, object value) { }
Microsoft.Build.Tasks.Core (10)
CodeTaskFactory.cs (2)
1031
public bool Initialize(string taskName, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
1044
public
TaskPropertyInfo
[] GetTaskParameters()
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (6)
107
private
TaskPropertyInfo
[] _parameters;
140
public
TaskPropertyInfo
[] GetTaskParameters()
146
public bool Initialize(string taskName, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
205
internal static string GetSourceCode(RoslynCodeTaskFactoryTaskInfo taskInfo, ICollection<
TaskPropertyInfo
> parameters)
221
foreach (
TaskPropertyInfo
propertyInfo in parameters)
293
internal static bool TryLoadTaskBody(TaskLoggingHelper log, string taskName, string taskBody, ICollection<
TaskPropertyInfo
> parameters, out RoslynCodeTaskFactoryTaskInfo taskInfo)
XamlTaskFactory\XamlTaskFactory.cs (2)
248
public bool Initialize(string taskName, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
261
public
TaskPropertyInfo
[] GetTaskParameters()
Microsoft.Build.Tasks.UnitTests (7)
RoslynCodeTaskFactory_Tests.cs (7)
233
ICollection<
TaskPropertyInfo
> parameters = new List<
TaskPropertyInfo
>
342
ICollection<
TaskPropertyInfo
> parameters = new List<
TaskPropertyInfo
>
781
bool success = RoslynCodeTaskFactory.TryLoadTaskBody(log, TaskName, taskBody, new List<
TaskPropertyInfo
>(), out RoslynCodeTaskFactoryTaskInfo _);
792
ICollection<
TaskPropertyInfo
> parameters = null,
807
bool success = RoslynCodeTaskFactory.TryLoadTaskBody(log, TaskName, taskBody, parameters ?? new List<
TaskPropertyInfo
>(), out RoslynCodeTaskFactoryTaskInfo taskInfo);
MSBuild (1)
ReflectableTaskPropertyInfo.cs (1)
34
internal ReflectableTaskPropertyInfo(
TaskPropertyInfo
taskPropertyInfo, Type taskType)