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