Base solution for your next web application
Open Closed

Upgrading from 12.3 to 14.0 has broken Nswag for old project #12278


User avatar
0
4Matrix created

Our current solution is AspNetZero 12.3.0. As part of upgrading to 14.0.0, we setup a separate repo so we could manually migrate everything and clean up along the way. In order to get the 14.0.0 solution to build, we had to install the .Net 9 SDK, which is fine and all works perfectly.

Unfortunately we are still needing to work on the old solution using 12.3.0 on the same PC and now when running NSWAG in the old solution it fails! It also seems that when running the backend and logging into swagger, it also errors now:


1 Answer(s)
  • User Avatar
    0
    4Matrix created

    Ok, so I found the fix so thought I would post it incase anyone else has the same problem:

    In the <CompanyName>.Web.Core project, update the nuget package 'Castle.Windsor.MsDependencyInjection' to version 4.1.0 (In my case on v12.2.0 of AspNetZero, I had version 4.0.0 installed)

    All woring now