Autofac Dependency Injection works in Debug but crashes in Release
问题 What would cause my DI to crash in Release mode when it's fine in Debug mode? This is a Xamarin.Forms app, and is being run on Android. 07-23 20:56:53.002 I/MonoDroid(15451): UNHANDLED EXCEPTION: Autofac.Core.DependencyResolutionException: An exception was thrown while executing a resolve operation. See the InnerException for details. ---> Object reference not set to an instance of an object (See inner exception for details.) ---> System.NullReferenceException: Object reference not set to an