Updated Xamarin Could not load file or assembly (markdown)

Stef Heyenrath
2021-01-25 08:23:05 +01:00
parent 36057007b6
commit c5ab60361c

@@ -19,18 +19,16 @@ Running under executable C:\git\WireMock.Net\examples\WireMock.Net.Console.Net4
``` ```
### Solution: ### Solutions:
#### 1. Adding System.Memory and System.Threading.Tasks.Extensions as NuGet references.
#### 2. Assembly binding redirects
Adding assembly binding redirects to the app.config for the assemblies which have an error. Adding assembly binding redirects to the app.config for the assemblies which have an error.
Like: Like:
``` xml ``` xml
<runtime> <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="4.0.2.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly> <dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="4.0.2.0-4.0.3.0" newVersion="4.0.3.0" /> <bindingRedirect oldVersion="4.0.2.0-4.0.3.0" newVersion="4.0.3.0" />