cloudinary / cloudinary/CloudinaryDotNet

Version 1.15.1 and 1.15.2 - Could not load file or assembly Microsoft.Extensions.Options

Open
#292 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
105
Forks
72
Avg merge
9m
Merged PRs (30d)
1

Description

## Could not load file or assembly 'Microsoft.Extensions.Options, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
We are using the SDK in a .NET Core 3.1 Azure Function project. On startup we get the following error message.
```
[2021-10-05T19:14:11.699Z] A host error has occurred during startup operation '929d6984-66be-444d-b0b2-d4645ccc7549'.
[2021-10-05T19:14:11.701Z] Function-ZipWhipEngine: Could not load file or assembly 'Microsoft.Extensions.Options, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
Value cannot be null. (Parameter 'provider')
```
In order to resolve the error we have to downgrade to version 1.14.0.

## Issue Type (Can be multiple)
- [X] Build - Cannot install or import the SDK
- [ ] Performance - Performance issues
- [ ] Behaviour - Functions are not working as expected (such as generate URL)
- [ ] Documentation - Inconsistency between the docs and behaviour
- [ ] Other (Specify)

## Steps to reproduce
Simply upgrade the NuGet package and try to run the project. Error will occur during startup.

## Error screenshots or Stack Trace (if applicable)
![image](https://user-images.githubusercontent.com/9382697/136088867-93b88a21-fd67-4266-b7ea-2302e95524b5.png)

## OS and Version
- [ ] Linux
- [X] Windows
- [ ] macOS
- [ ] MultiPlatform

## Versions and Libraries (fill in the version numbers)
- Cloudinary .NET SDK version - 1.15.1 and 1.15.2
- .NET Core - 3.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.