-
-
Notifications
You must be signed in to change notification settings - Fork 187
Closed
Description
We upgraded from 2.10.0 to 2.11.0 but when trying to generate clients using CSharpClientGenerator and the method GenerateFile it now throws an exception:
_Unhandled exception. System.TypeInitializationException: The type initializer for 'LiquidTemplate' threw an exception.
---> System.MissingMethodException: Method not found: 'Parlot.Fluent.Parser`1<System.Collections.Generic.List`1<!!0>> Parlot.Fluent.Parsers.OneOrMany(Parlot.Fluent.Parser`1<!!0>)'.
at NJsonSchema.CodeGeneration.DefaultTemplateFactory.LiquidParser..ctor()
at NJsonSchema.CodeGeneration.DefaultTemplateFactory.LiquidTemplate..cctor()
--- End of inner exception stack trace ---
at NJsonSchema.CodeGeneration.DefaultTemplateFactory.LiquidTemplate..ctor(String language, String template, Func`3 templateContentLoader, Object model, String toolchainVersion, CodeGeneratorSettingsBase settings)
at NJsonSchema.CodeGeneration.DefaultTemplateFactory.CreateTemplate(String language, String template, Object model)
at NSwag.CodeGeneration.CSharp.CSharpClientGenerator.GenerateClientTypes(String controllerName, String controllerClassName, IEnumerable`1 operations)+MoveNext()
at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
at NSwag.CodeGeneration.ClientGeneratorBase`3.GenerateAllClientTypes()
at NSwag.CodeGeneration.ClientGeneratorBase`3.GenerateFile(ClientGeneratorOutputType outputType)
at NSwag.CodeGeneration.ClientGeneratorBase`3.GenerateFile()_
When downgrading to 2.10.0 of Fluid.Core the exception is no longer thrown.
Metadata
Metadata
Assignees
Labels
No labels