Skip to content
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

Dependencies to Microsoft.Extensions.* version >= 2.1 #2618

Open
codecontemplator opened this issue Oct 28, 2020 · 3 comments
Open

Dependencies to Microsoft.Extensions.* version >= 2.1 #2618

codecontemplator opened this issue Oct 28, 2020 · 3 comments
Assignees
Milestone

Comments

@codecontemplator
Copy link

Hi,

This is more of a question than a bug report. We note that the latest Azure Web Jobs SDK takes dependencies on the following Microsoft.Extensions packages:

  • Microsoft.Extensions.Configuration (>= 2.1.0)
  • Microsoft.Extensions.Configuration.Abstractions (>= 2.1.0)
  • Microsoft.Extensions.Configuration.EnvironmentVariables (>= 2.1.0)
  • Microsoft.Extensions.Configuration.Json (>= 2.1.0)
  • Microsoft.Extensions.Hosting (>= 2.1.0)
  • Microsoft.Extensions.Logging (>= 2.1.0)
  • Microsoft.Extensions.Logging.Abstractions (>= 2.1.0)
  • Microsoft.Extensions.Logging.Configuration (>= 2.1.0)

These packages have been updated to a new major version (3.1.9 is the latest release and version 5.0 is coming).

When, for example, we use the latest Entity Framework, version 3.1.9 that has a dependency on
Microsoft.Extensions.Logging (>= 3.1.9) it seems like we have a potential problem with a transient dependency conflict.

In practice it seems to work, as long as we make sure that Microsoft.Extensions.Logging (>= 3.1.9) is selected but we are worried that we might bump into runtime issues.

What is your take on this? Is the Microsoft.Extensions.* backwards compatible from 3.x (and soon 5.x) to 2.x? If not, are there any plans to upgrade to newer dependencies any time soon?

Thanks for your attention and thanks for providing the Azure Webjobs SDK.

@ghost ghost assigned brettsam Oct 28, 2020
@ThejaChoudary ThejaChoudary self-assigned this Nov 2, 2020
@ThejaChoudary
Copy link

ThejaChoudary commented Nov 9, 2020

@codecontemplator The dependencies of.net core and dependencies of DOT Net standard are different things, so there should not be any conflict.Please let us know if the conflicts occurs so that we can investigate further.

@codecontemplator
Copy link
Author

Thanks for the response @ThejaChoudary . Please have a look at https://github.com/collector-bank/azure-webjobs-sdk-issue-2618 for a repro case of a the problem we are experiencing.

@v-anvari
Copy link

v-anvari commented Jan 19, 2021

Hi @codecontemplator , I have tried the repro that you have provide. I am able to repro the issue and get the "System.MethodAccessException". Triaging this issue in order to perform detailed analysis.
I am not sure if it is a dependency issue, because I tried different workarounds by adding required package reference and update few packages, but yet it did not work. This seems to be more of an EF core issue.

cc: @brettsam /@fabiocav , tagging them for more context

@v-anvari v-anvari added this to the Triaged milestone Jan 19, 2021
@v-anvari v-anvari removed their assignment Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants