8 references to Throw
Microsoft.Build (4)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
87return InternalError.Throw<IList<NodeInfo>>($"Exceeded max node count of '{ComponentHost.BuildParameters.MaxNodeCount}', current count is '{_nodeContexts.Count}' ");
BackEnd\Components\RequestBuilder\IntrinsicTask.cs (1)
73_ => InternalError.Throw<IntrinsicTask>($"Unhandled intrinsic task type {taskInstance.GetType().GetTypeInfo().BaseType}"),
BackEnd\Components\RequestBuilder\IntrinsicTasks\IntrinsicTaskFactory.cs (1)
83return InternalError.Throw<ITask>($"Unexpected intrinsic task type {TaskType}");
Instance\TaskFactoryWrapper.cs (1)
234: InternalError.Throw<object?>($"Task does not implement IGeneratedTask and we don't have {typeof(ReflectableTaskPropertyInfo)} either.");
Microsoft.Build.Framework (3)
Traits.cs (3)
474: InternalError.Throw<bool?>($"Environment variable \"{environmentVariable}\" should have values \"true\", \"false\" or undefined"); 496return InternalError.Throw<ProjectInstanceTranslationMode?>($"Invalid escape hatch for project instance translation: {mode}"); 534return InternalError.Throw<SdkReferencePropertyExpansionMode?>($"Invalid escape hatch for SdkReference property expansion: {mode}");
Microsoft.Build.Tasks.Core (1)
src\msbuild\src\Shared\NodePipeBase.cs (1)
261return InternalError.Throw<INodePacket>($"Exception while deserializing packet {packetType}: {e}");