RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.62k stars 1.23k forks source link

NSwag 14.0.3 still issues warning CS8618 #4784

Open nifklas opened 5 months ago

nifklas commented 5 months ago

Seemingly the same _baseUrl issue that was reported in #4704

NoahStolk commented 5 months ago

Same here. We use a strict build configuration which has WarningsAsErrors set to nullable, so this is a build error for us that we currently have to work around. For now I'm just removing the field manually, since it is apparently never used in the generated code.

prom3theu5 commented 4 months ago

Same here Have had to disregard the errors for now with

<PropertyGroup>
    <NoWarn>CS8618;CS0169</NoWarn>
  </PropertyGroup>