title: Is There Any Way to use a custom generator with nswag on the command line?
body: <p>We are using NSwag to generate web clients.</p>
  <p>We have some custom generators for TypeName and OperationName.</p>
  <p>Currently we use the NSwag class library and have custom code written to call in a console application.</p>
  <p>Here is our <code>CSharpClientGeneratorSettings</code>.  As you can see we have a custom class for <code>TypeNameGenerator</code> and <code>OperationNameGenerator</code>.</p>
  <pre><code>        var cSharpClientGeneratorSettings = new CSharpClientGeneratorSettings
          {
              ClassName = &quot;{controller}Client&quot;,
              CSharpGeneratorSettings =
              {
                  Namespace = this._clientNamespace,
                  ClassStyle = CSharpClassStyle.Inpc,
                  DateTimeType = &quot;System.DateTime&quot;,
                  DateType = &quot;System.DataTime&quot;,
                  TypeNameGenerator = new CustomTypeNameGenerator(),
                  JsonLibrary = CSharpJsonLibrary.SystemTextJson
              },
              GenerateClientInterfaces = true,
              GenerateClientClasses = true,
              OperationNameGenerator = new TClientGenerator(),
              ExceptionClass = &quot;YadaYada.Library.Client.SwaggerException&quot;,
              InjectHttpClient = true,
              SerializeTypeInformation = true,
              DisposeHttpClient = true,
              WrapDtoExceptions = false,
              GenerateOptionalParameters = true,
              ExposeJsonSerializerSettings = false,
              ParameterArrayType = &quot;System.Collections.Generic.IList&quot;,
              ResponseArrayType = &quot;System.Collections.Generic.IList&quot;,
              GenerateExceptionClasses = false,
              UseBaseUrl = false,
              GenerateDtoTypes = false,
              AdditionalNamespaceUsages = this._additionalNamespaces
          };
  </code></pre>
  <p>I would like to <a href="https://github.com/RicoSuter/NSwag/wiki/NSwag.MSBuild" rel="nofollow noreferrer">run this code generation as an MSBuild task</a> without have to build and deploy our console application.  Is there any way to 'inject' our custom name operators into the command line version of NSwag?  (<code>nswag.exe</code>)?</p>