Building a Windows console OpenAPI application and testing in VS IDE debug mode, the following code does not generate the following error, but attaching to the application process after starting the app the exception does occur.
System.Lazy<Newtonsoft.Json.JsonSerializerSettings>(CreateSerializerSettings, true);
Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
Part of the problem seems that the installed NUGET is v13.0.3.0, but there is no v13.0.0.0 available.
I expect either the newer version to be accepted or the specified version of the NUGET to be available.
Also, note that same NUGET and Swagger API code is being used in two different apps on different OS's. The PC Windows 11 Enterprise v22H2 has the issue. The Azure App Service Windows .NET ASP website does not.
