Working with AppDomain.AssemblyResolve event

You can define a dictionary of the assemblies from your directory, like this: private readonly IDictionary<string,Assembly> additional = new Dictionary<string,Assembly>(); Load this dictionary with the assemblies from your known directory, like this: foreach ( var assemblyName … corresponding to DLL names in your directory… ) { var assembly = Assembly.Load(assemblyName); additional.Add(assembly.FullName, assembly); } Provide an … Read more

Could not load file or assembly ‘Newtonsoft.Json’ or one of its dependencies. Manifest definition does not match the assembly reference

To solve this, I ensured all my projects used the same version by running the following command and checking the results: update-package Newtonsoft.Json -reinstall And, lastly I removed the following from my web.config: <dependentAssembly> <assemblyIdentity name=”Newtonsoft.Json” publicKeyToken=”30ad4fe6b2a6aeed” culture=”neutral” /> <bindingRedirect oldVersion=”0.0.0.0-6.0.0.0″ newVersion=”6.0.0.0″ /> </dependentAssembly> If you want to ensure all your Newtonsoft.Json packages are the … Read more

Xamarin On Windows C#

First off, there’s not really a question here, you just posted an error message with no context, is anything breaking? If so, what? You need to analyze the error message before asking your question. To start, the global assembly cache is a place on your machine that Windows uses to reference commonly used assemblies, so … Read more