22 references to Throw
Microsoft.Build (18)
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
338
=> InternalError.
Throw
<Task>("This method should never be called by anyone except the TargetBuilder.");
BackEnd\Node\InProcNode.cs (1)
233
=> InternalError.
Throw
<INodePacket>("Unexpected call to DeserializePacket on the in-proc node.");
Collections\PropertyDictionary.cs (1)
115
=> InternalError.
Throw
<ICollection<string>>("Keys is not supported on PropertyDictionary.");
Collections\ReadOnlyConvertingDictionary.cs (1)
55
=> InternalError.
Throw
<ICollection<N>>("Values is not supported on ReadOnlyConvertingDictionary.");
Construction\ProjectChooseElement.cs (1)
82
=> InternalError.
Throw
<ElementLocation>("Should not evaluate this");
Construction\ProjectExtensionsElement.cs (1)
88
=> InternalError.
Throw
<ElementLocation>("Should not evaluate this");
Construction\ProjectOtherwiseElement.cs (1)
77
=> InternalError.
Throw
<ElementLocation>("Should not evaluate this");
Construction\ProjectRootElement.cs (1)
647
=> InternalError.
Throw
<ElementLocation>("Should not evaluate this");
Construction\ProjectUsingTaskBodyElement.cs (1)
109
=> InternalError.
Throw
<ElementLocation>("Should not evaluate this");
Construction\ProjectUsingTaskParameterElement.cs (1)
139
=> InternalError.
Throw
<ElementLocation>("Should not evaluate this");
Construction\UsingTaskParameterGroupElement.cs (1)
66
=> InternalError.
Throw
<ElementLocation>("Should not evaluate this");
Instance\TaskFactories\AssemblyTaskFactory.cs (6)
113
=> InternalError.
Throw
<bool>("Use internal call to properly initialize the assembly task factory");
135
=> InternalError.
Throw
<bool>("Use internal call to properly initialize the assembly task factory");
156
=> InternalError.
Throw
<ITask>("Use internal call to properly create a task instance from the assembly task factory");
176
=> InternalError.
Throw
<ITask>("Use internal call to properly create a task instance from the assembly task factory");
769
=> InternalError.
Throw
<bool>("Use internal call to properly initialize the assembly task factory");
789
=> InternalError.
Throw
<ITask>("Use internal call to properly create a task instance from the assembly task factory");
Logging\DistributedLoggers\DistributedFileLogger.cs (1)
187
get => InternalError.
Throw
<LoggerVerbosity>("Should not be getting verbosity from distributed file logger");
Microsoft.Build.Framework (4)
Assumed.cs (2)
794
=> InternalError.
Throw
<T>(message ?? "Unreachable code reached.");
809
=> InternalError.
Throw
<T>(handler.GetFormattedText());
BinaryTranslator.cs (2)
103
=> InternalError.
Throw
<BinaryWriter>("Cannot get writer from reader.");
940
=> InternalError.
Throw
<BinaryReader>("Cannot get reader from writer.");