50 references to Runtime
Microsoft.Build (34)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
922returnClass.FactoryIdentityParameters.Runtime ?? XMakeAttributes.MSBuildRuntimeValues.any, 924taskIdentityParameters.Runtime ?? XMakeAttributes.MSBuildRuntimeValues.any,
CommunicationsUtilities.cs (4)
869ErrorUtilities.VerifyThrow(taskHostParameters.Runtime != null, "Should always have an explicit runtime when we call this method."); 872if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.clr2, StringComparison.OrdinalIgnoreCase)) 876else if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.clr4, StringComparison.OrdinalIgnoreCase)) 880else if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase))
Instance\TaskFactories\AssemblyTaskFactory.cs (14)
362string runtime = mergedParameters.Runtime ?? XMakeAttributes.GetCurrentMSBuildRuntime(); 489if (identityParameters.Runtime != null) 491if (!XMakeAttributes.IsValidMSBuildRuntimeValue(identityParameters.Runtime)) 497identityParameters.Runtime, 536if (XMakeAttributes.RuntimeValuesMatch(taskIdentityParameters.Runtime, factoryIdentityParameters.Runtime)) 563runtime: XMakeAttributes.GetExplicitMSBuildRuntime(taskIdentityParameters.Runtime), 570runtime: XMakeAttributes.GetExplicitMSBuildRuntime(factoryIdentityParameters.Runtime), 575if (!XMakeAttributes.TryMergeRuntimeValues(taskIdentityParameters.Runtime, factoryIdentityParameters.Runtime, out var mergedRuntime)) 578$"TaskIdentity Runtime: {taskIdentityParameters.Runtime}, FactoryIdentity Runtime: {factoryIdentityParameters.Runtime}."); 639if (mergedParameters.Runtime != null) 643if (!currentRuntime.Equals(XMakeAttributes.GetExplicitMSBuildRuntime(mergedParameters.Runtime), StringComparison.OrdinalIgnoreCase))
Instance\TaskFactories\TaskHostTask.cs (4)
291_taskHostParameters.Runtime, 379LogErrorUnableToCreateTaskHost(_requiredContext, _taskHostParameters.Runtime, _taskHostParameters.Architecture, null); 384LogErrorUnableToCreateTaskHost(_requiredContext, _taskHostParameters.Runtime, _taskHostParameters.Architecture, null); 388LogErrorUnableToCreateTaskHost(_requiredContext, _taskHostParameters.Runtime, _taskHostParameters.Architecture, e);
Instance\TaskRegistry.cs (10)
913int runtimeHash = obj.TaskIdentityParameters.Runtime == null ? 0 : StringComparer.OrdinalIgnoreCase.GetHashCode(obj.TaskIdentityParameters.Runtime); 954return string.Equals(x.Runtime, y.Runtime, StringComparison.OrdinalIgnoreCase) && 965string runtimeX = x.Runtime; 966string runtimeY = y.Runtime; 1173taskFactoryParameters.Runtime != null && taskFactoryParameters.Architecture != null, 1522{ nameof(TaskHostParameters.Runtime), TaskFactoryParameters.Runtime }, 1539bool containsArchOrRuntimeParam = TaskFactoryParameters.Runtime != null
Microsoft.Build.Engine.UnitTests (3)
BackEnd\TaskRegistry_Tests.cs (1)
1910Assert.Equal(expectedRuntime, record.TaskFactoryParameters.Runtime);
TestComparers\TaskRegistryComparers.cs (2)
56Assert.Equal(xParams.Runtime, yParams.Runtime);
Microsoft.Build.Framework (5)
BinaryTranslator.cs (1)
1129string runtime = value.Runtime;
TaskHostParameters.cs (4)
108runtime: overrideParameters.Runtime ?? baseParameters.Runtime, 120{ nameof(Runtime), Runtime ?? string.Empty },
Microsoft.Build.Tasks.Core (4)
CommunicationsUtilities.cs (4)
869ErrorUtilities.VerifyThrow(taskHostParameters.Runtime != null, "Should always have an explicit runtime when we call this method."); 872if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.clr2, StringComparison.OrdinalIgnoreCase)) 876else if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.clr4, StringComparison.OrdinalIgnoreCase)) 880else if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase))
MSBuild (4)
CommunicationsUtilities.cs (4)
869ErrorUtilities.VerifyThrow(taskHostParameters.Runtime != null, "Should always have an explicit runtime when we call this method."); 872if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.clr2, StringComparison.OrdinalIgnoreCase)) 876else if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.clr4, StringComparison.OrdinalIgnoreCase)) 880else if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase))