1 type derived from TaskPropertyInfo
Microsoft.Build.Framework (1)
ReflectableTaskPropertyInfo.cs (1)
17
internal class ReflectableTaskPropertyInfo :
TaskPropertyInfo
3 instantiations of TaskPropertyInfo
Microsoft.Build (2)
Instance\TaskRegistry.cs (2)
1851
UsingTaskParameters.Add(parameter.Name, new
TaskPropertyInfo
(parameter.Name, paramType, output, required));
1897
taskPropertyInfo = 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)
50
public bool Initialize(string taskName, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
60
public
TaskPropertyInfo
[] GetTaskParameters()
63
var propertyInfos = new
TaskPropertyInfo
[infos.Length];
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (17)
649
TaskPropertyInfo
parameter = _taskFactoryWrapper.GetProperty(parameterName);
650
foreach (
TaskPropertyInfo
prop in _taskFactoryWrapper.TaskFactoryLoadedType.Properties)
967
private bool SetTaskItemParameter(
TaskPropertyInfo
parameter, ITaskItem item)
975
private bool SetValueParameter(
TaskPropertyInfo
parameter, Type parameterType, string expandedParameterValue)
1009
private bool SetParameterArray(
TaskPropertyInfo
parameter, Type parameterType, IList<TaskItem> taskItems, ElementLocation parameterLocation)
1128
private ITaskItem[] GetItemOutputs(
TaskPropertyInfo
parameter)
1161
private string[] GetValueOutputs(
TaskPropertyInfo
parameter)
1414
TaskPropertyInfo
parameter = null;
1511
/// For an in-proc task the property's <see cref="
TaskPropertyInfo
.PropertyType"/> is already the live,
1518
private static Type ResolveTaskParameterType(LoadedType loadedType,
TaskPropertyInfo
parameter, int indexOfParameter)
1538
private static Type ResolveTaskParameterTypeByName(LoadedType loadedType,
TaskPropertyInfo
parameter, int indexOfParameter)
1550
TaskPropertyInfo
parameter,
1641
private void EnsureParameterInitialized(
TaskPropertyInfo
parameter, Lookup lookup)
1686
TaskPropertyInfo
parameter,
1725
TaskPropertyInfo
parameter,
1799
private void GatherTaskItemOutputs(bool outputTargetIsItem, string outputTargetName, ITaskItem[] outputs, ElementLocation parameterLocation,
TaskPropertyInfo
parameter)
1965
private void GatherArrayStringAndValueOutputs(bool outputTargetIsItem, string outputTargetName, string[] outputs, ElementLocation parameterLocation,
TaskPropertyInfo
parameter)
Instance\TaskFactories\AssemblyTaskFactory.cs (5)
115
public bool Initialize(string taskName, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
138
public bool Initialize(string taskName, IDictionary<string, string> factoryIdentityParameters, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
144
public
TaskPropertyInfo
[] GetTaskParameters()
240
IDictionary<string,
TaskPropertyInfo
> taskParameters,
758
public bool Initialize(string taskName, TaskHostParameters factoryIdentityParameters, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
Instance\TaskFactories\RegisteredTaskFactory.cs (2)
57
public
TaskPropertyInfo
[] GetTaskParameters() => _loadedType.Properties;
61
public bool Initialize(string taskName, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost) => true;
Instance\TaskFactories\TaskHostTask.cs (2)
251
public void SetPropertyValue(
TaskPropertyInfo
property, object value)
259
public object GetPropertyValue(
TaskPropertyInfo
property)
Instance\TaskFactoryWrapper.cs (12)
40
public readonly IReadOnlyDictionary<string,
TaskPropertyInfo
> PropertyInfoCache;
46
IReadOnlyDictionary<string,
TaskPropertyInfo
> propertyInfoCache)
180
public
TaskPropertyInfo
? GetProperty(string propertyName)
182
TaskPropertyInfo
? propertyInfo;
202
internal void SetPropertyValue(ITask task,
TaskPropertyInfo
property, object value)
222
internal object? GetPropertyValue(ITask task,
TaskPropertyInfo
property)
254
Dictionary<string,
TaskPropertyInfo
>? propertyInfoCache = null;
260
TaskPropertyInfo
[] propertyInfos = _taskFactory.GetTaskParameters();
267
TaskPropertyInfo
propertyInfo = propertyInfos[i];
277
propertyInfoCache = new Dictionary<string,
TaskPropertyInfo
>(StringComparer.OrdinalIgnoreCase);
324
(IReadOnlyDictionary<string,
TaskPropertyInfo
>?)propertyInfoCache ?? ReadOnlyEmptyDictionary<string,
TaskPropertyInfo
>.Instance);
Instance\TaskRegistry.cs (6)
1616
private IDictionary<string,
TaskPropertyInfo
> _usingTaskParameters;
1652
internal IDictionary<string,
TaskPropertyInfo
> UsingTaskParameters
1654
get { return _usingTaskParameters ?? ReadOnlyEmptyDictionary<string,
TaskPropertyInfo
>.Instance; }
1768
_usingTaskParameters ??= new Dictionary<string,
TaskPropertyInfo
>(StringComparer.OrdinalIgnoreCase);
1860
translator.TranslateDictionary(ref _usingTaskParameters, TranslatorForTaskParametersKey, TranslatorForTaskParameterValue, count => new Dictionary<string,
TaskPropertyInfo
>(StringComparer.OrdinalIgnoreCase));
1872
private 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>
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)
45
bool Initialize(string taskName, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost);
51
TaskPropertyInfo
[] GetTaskParameters();
ITaskFactory2.cs (1)
40
bool Initialize(string taskName, IDictionary<string, string> factoryIdentityParameters, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost);
ITaskFactory3.cs (1)
52
bool Initialize(string taskName, TaskHostParameters factoryIdentityParameters, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost);
ReflectableTaskPropertyInfo.cs (1)
36
TaskPropertyInfo
taskPropertyInfo,
Microsoft.Build.Tasks.Core (11)
CodeTaskFactory.cs (2)
1144
public bool Initialize(string taskName, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
1157
public
TaskPropertyInfo
[] GetTaskParameters()
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (7)
120
private
TaskPropertyInfo
[] _parameters;
169
public
TaskPropertyInfo
[] GetTaskParameters()
179
public bool Initialize(string taskName, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
219
private bool TryResolveCompiledTaskType(Assembly assembly, IDictionary<string,
TaskPropertyInfo
> parameterGroup, RoslynCodeTaskFactoryTaskInfo taskInfo, string taskName)
255
internal static string GetSourceCode(RoslynCodeTaskFactoryTaskInfo taskInfo, ICollection<
TaskPropertyInfo
> parameters)
271
foreach (
TaskPropertyInfo
propertyInfo in parameters)
344
internal static bool TryLoadTaskBody(TaskLoggingHelper log, string taskName, string taskBody, ICollection<
TaskPropertyInfo
> parameters, IBuildEngine taskFactoryEngineContext, out RoslynCodeTaskFactoryTaskInfo taskInfo)
XamlTaskFactory\XamlTaskFactory.cs (2)
278
public bool Initialize(string taskName, IDictionary<string,
TaskPropertyInfo
> parameterGroup, string taskBody, IBuildEngine taskFactoryLoggingHost)
291
public
TaskPropertyInfo
[] GetTaskParameters()