Replies: 2 comments
-
I solved it like this: I downloaded fluid version 12 https://www.nuget.org/api/v2/package/Fluid.Core/2.12.0 |
Beta Was this translation helpful? Give feedback.
-
I have the same issue, it started after I upgraded to version 14.2.0.0 from version 14.0.0.0. I had to copy the file to the C:\Program Files (x86)\Rico Suter\NSwagStudio\Win\ folder because I'm using the WinX64 runtime. Seems to me that the setup is missing that file. |
Beta Was this translation helpful? Give feedback.
-
How to resolve?
System.TypeInitializationException: The type initializer for 'LiquidTemplate' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'Fluid, Version=2.12.0.0, Culture=neutral, PublicKeyToken=51cdb8c1938e4789'. Impossibile trovare il file specificato.
File name: 'Fluid, Version=2.12.0.0, Culture=neutral, PublicKeyToken=51cdb8c1938e4789'
System.TypeInitializationException: The type initializer for 'LiquidTemplate' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'Fluid, Version=2.12.0.0, Culture=neutral, PublicKeyToken=51cdb8c1938e4789'. Impossibile trovare il file specificato.
File name: 'Fluid, Version=2.12.0.0, Culture=neutral, PublicKeyToken=51cdb8c1938e4789'
Runtime: Net80
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() in //src/NSwag.CodeGeneration.CSharp/CSharpClientGenerator.cs:line 69at System.Collections.Generic.List
1.AddRange(IEnumerable
1 collection)at NSwag.CodeGeneration.ClientGeneratorBase
3.GenerateAllClientTypes() in /_/src/NSwag.CodeGeneration/ClientGeneratorBase.cs:line 117 at NSwag.CodeGeneration.ClientGeneratorBase
3.GenerateFile(ClientGeneratorOutputType outputType) in //src/NSwag.CodeGeneration/ClientGeneratorBase.cs:line 73at NSwag.Commands.CodeGeneration.OpenApiToCSharpClientCommand.RunAsync() in //src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpClientCommand.cs:line 292
at NSwag.Commands.CodeGeneration.OpenApiToCSharpClientCommand.RunAsync(CommandLineProcessor processor, IConsoleHost host) in //src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpClientCommand.cs:line 270
at NSwag.Commands.NSwagDocument.<>c__DisplayClass4_1.<b__0>d.MoveNext() in //src/NSwag.Commands/NSwagDocument.cs:line 81
--- End of stack trace from previous location ---
at NSwag.Commands.NSwagDocument.ExecuteAsync() in //src/NSwag.Commands/NSwagDocument.cs:line 86
at NSwag.Commands.Document.ExecuteDocumentCommand.ExecuteDocumentAsync(IConsoleHost host, String filePath) in //src/NSwag.Commands/Commands/Document/ExecuteDocumentCommand.cs:line 76
at NSwag.Commands.Document.ExecuteDocumentCommand.RunAsync(CommandLineProcessor processor, IConsoleHost host) in //src/NSwag.Commands/Commands/Document/ExecuteDocumentCommand.cs:line 33
at NConsole.CommandLineProcessor.ProcessSingleAsync(String[] args, Object input)
at NConsole.CommandLineProcessor.ProcessAsync(String[] args, Object input)
at NSwag.Commands.NSwagCommandProcessor.ProcessAsync(String[] args) in /_/src/NSwag.Commands/NSwagCommandProcessor.cs:line 65
Beta Was this translation helpful? Give feedback.
All reactions