In the screenshot has it pulled in 12.01 of Newtonsoft ? Havent I explicitly added 11.0.2 ?
I got the app running using explicit references. I had 3.10.0 and 3.11.0 of Carter.
Originally I had this
carter:3.10.0
newtonsoft.json:[11.0.2]
but I was getting
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load file or assembly ‘Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed’. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
at Carter.CarterExtensions.AddCarter(IServiceCollection services, DependencyContextAssemblyCatalog assemblyCatalog) in /Users/jonathan/Projects/Carter/src/CarterExtensions.cs:line 182
It was resolving to 3.11 which is >= 12.01
I then changed it to
carter:[3.10.0]
newtonsoft.json:[11.0.2]
and the console app loads but the Fire looks to be telling it pulled in 12.01
check the detailed log. does it get upgraded because something else demands 12.01? there’s a lot of information in the resolve log to let you diagnose these kind of things.