-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReflectionTypeLoadException: Could not load file or assembly 'Microsoft.OData.Core' #886
Comments
We are also running into this problem since upgrading to 6.0.1. From our packages.lock.json file: "Simple.OData.Client": {
"type": "Direct",
"requested": "[6.0.1, )",
"resolved": "6.0.1",
"dependencies": {
"Microsoft.Data.OData": "[5.8.5, 6.0.0)",
"Microsoft.OData.Core": "[7.9.4, 8.0.0)"
}
},
"Microsoft.OData.Core": {
"type": "Transitive",
"resolved": "7.9.4",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "5.0.0",
"Microsoft.OData.Edm": "[7.9.4]",
"Microsoft.Spatial": "[7.9.4]"
}
},
"Microsoft.OData.Edm": {
"type": "Transitive",
"resolved": "7.9.4",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "4.6.0",
"System.Text.Encodings.Web": "4.7.2",
"System.Text.Json": "4.6.0"
}
}, It seems version 7.9.4 is resolved but 7.10.0 is requested by the runtime. For now, we will be applying the same workaround as mentioned. (Adding a direct package dependency to make sure the correct version is resolved and pinning the version number.) <PackageReference Include="Microsoft.OData.Core" Version="[7.10.0]" /> |
I can't understand why this is not already solved after 3 months. Is this project still alive?? |
I got so frustrated of this fix, that I created a Pull Request. Would be awesome, if you can provide a new nuget package containing the fix. Thanks. |
@davidnmbond you are the only recent contributor in the commits history. |
Pushing this, because resolving the issue and merging the PR are still in pending state. |
Had the same problem. I managed to work around it by explicitly specifying the version I want of the transitive dependency. In csproj: <PackageReference Include="Microsoft.OData.Core" Version="7.10.0" />
<PackageReference Include="Microsoft.OData.Edm" Version="7.10.0" /> |
Using NuGet package Simple.OData.V4.Client 6.0.1 I get the following exception on every request:
Solution:
You should add Microsoft.OData.Core as dependency. (At least adding this manually fixes the issue on my machine).
The text was updated successfully, but these errors were encountered: