36 references to Tool
dotnet-svcutil.xmlserializer (35)
Microsoft\Tools\ServiceModel\SvcUtil\ExportModule.cs (4)
34private static Type serviceContractAttributeType = Tool.SMAssembly.GetType("System.ServiceModel.ServiceContractAttribute"); 66Type contractDescription = Tool.SMAssembly.GetType("System.ServiceModel.Description.ContractDescription"); 74if (Tool.IsFatal(e)) 88string error = $"Type System.ServiceModel.ServiceContractAttribute not found type System.ServiceModel.ServiceContractAttribute in {Tool.SMAssembly.FullName}";
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (2)
96if (Tool.IsFatal(e)) 224if (Tool.IsFatal(e))
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (8)
75Tool.Assert(validModes != ToolMode.None, "validModes should never be set to None!"); 76Tool.Assert(newDefaultMode != ToolMode.None, "newDefaultMode should never be set to None!"); 77Tool.Assert((validModes & newDefaultMode) != ToolMode.None, "newDefaultMode must be a validMode!"); 78Tool.Assert(IsSingleBit(newDefaultMode), "newDefaultMode must Always represent a single mode!"); 205if (Tool.IsFatal(e)) 374if (Tool.IsFatal(e)) 446Tool.SMAssembly = InputModule.LoadAssembly(smassembly); 460Tool.SMAssembly = InputModule.LoadAssembly(smpassembly);
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (4)
36Tool.Assert(!string.IsNullOrEmpty(filepath), "filename must have a valid value"); 37Tool.Assert(!string.IsNullOrEmpty(extension), "extension must have a valid value"); 93if (Tool.IsFatal(e)) 112if (Tool.IsFatal(e))
Microsoft\Tools\ServiceModel\SvcUtil\Tool.cs (3)
44if (Tool.IsFatal(e)) 48Tool.FailFast(e.ToString()); 63Tool.FailFast(message);
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (2)
372Tool.Assert(name != null, "Name should never be null"); 462Tool.Assert(_stringBuilder != null, "stringBuilder cannot be null");
Microsoft\Tools\ServiceModel\SvcUtil\ToolRuntime.cs (1)
38Tool.Assert(_options.GetToolMode().HasValue, System.SR.Format(System.SR.AmbiguousToolUseage));
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (11)
127Type contractDescriptionType = Tool.SMAssembly.GetType("System.ServiceModel.Description.ContractDescription"); 130ToolConsole.WriteError($"Not found type System.ServiceModel.Description.ContractDescription in {Tool.SMAssembly.FullName}"); 141Type xmlSerializerOperationBehaviorType = Tool.SMAssembly.GetType("System.ServiceModel.Description.XmlSerializerOperationBehavior"); 144ToolConsole.WriteError($"Not found type System.ServiceModel.Description.XmlSerializerOperationBehaviorType in {Tool.SMAssembly.FullName}"); 148Type operationType = Tool.SMAssembly.GetType("System.ServiceModel.Description.OperationDescription"); 151ToolConsole.WriteError($"Not found type System.ServiceModel.Description.OperationDescription in {Tool.SMAssembly.FullName}"); 162Type keyedByTypeCollectionType = Tool.SMAssembly.GetType("System.Collections.Generic.KeyedByTypeCollection`1"); 165ToolConsole.WriteError($"Not found type System.Collections.Generic.KeyedByTypeCollection`1 in {Tool.SMAssembly.FullName}"); 169Type iOperationBehaviorType = Tool.SMAssembly.GetType("System.ServiceModel.Description.IOperationBehavior"); 172ToolConsole.WriteError($"Not found type System.ServiceModel.Description.IOperationBehavior in {Tool.SMAssembly.FullName}"); 179ToolConsole.WriteError($"Cannot make Generic Type System.Collections.Generic.KeyedByTypeCollection<IOperationBehavior> in {Tool.SMAssembly.FullName}");
dotnet-svcutil.xmlserializer.IntegrationTests (1)
SvcutilTests.cs (1)
27Tool.Main(new string[] { Assembly.GetExecutingAssembly().Location, $"--out:{outputFile}", $"--smreference:{smassemblypath}", $"--quiet"});