Closed espenekvang closed 4 months ago
It could mean that you have an old Parlot dll version sticking around. Or a direct reference to an old one. The current one to use is 1.0.0. Or the other way around actually, that there is something using the older version of Fluid which tries to use the old Parser<> ctor that appears in the log but doesn't exist anymore.
Since it's a generator, it's executed by the compiler or VS, so it is definitely possible that a restart/clean could fix it.
Can I try to repro it locally? I haven't used NSwag so I shouldn't hit this issue if that is the case, if you have a branch I can try.
Ok - thanks. I will try to look for an old dll first and let you know the result.
Closing this. The errors was caused by and implicit reference to Fluid.Core 2.9.0 from NSwag.CodeGeneration.CSharp. For us to upgrade to latest Fluid.Core we would need NSwag.CodeGeneration.CSharp to be upgraded first.
I've created a PR to update NJsonSchema
's dependencies, including Fluid: https://github.com/RicoSuter/NJsonSchema/pull/1719
Thank you @lahma
We upgraded from 2.10.0 to 2.11.0 but when trying to generate clients using
CSharpClientGenerator
and the methodGenerateFile
it now throws an exception:When downgrading to 2.10.0 of Fluid.Core the exception is no longer thrown.