mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-23 08:48:28 +02:00
Updated Xamarin Could not load file or assembly (markdown)
@@ -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" />
|
||||||
|
|||||||
Reference in New Issue
Block a user