Skip to content

[BUG] PowerShell Core fails to load Azure.Core because of version dependency #8739

@erich-wang

Description

@erich-wang

Describe the bug
Azure.Core should depend on System.Diagnostics.DiagnosticSource nuget package 4.5.1 instead of 4.6 to make it work in PowerShell Core.

PowerShell Core 6.2.2 (released this July) has dependency on version 4.0.3.1 of System.Diagnostics.DiagnosticSource, however Azure.Core depends on higher version 4.0.4.0. PowerShell Core will automatically load 4.0.3.1 of System.Diagnostics.DiagnosticSource when starting, later when loading modules depending on Azure.Core, PowerShell Core will report failure because it need higher version 4.0.4.0 of System.Diagnostics.DiagnosticSource.

Exception or Stack Trace
Add the exception log and stack trace if available

To Reproduce
Steps to reproduce the behavior:

Code Snippet
Add the code snippet that causes the issue.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Setup (please complete the following information):

  • OS: [e.g. iOS]
  • IDE : [e.g. IntelliJ]
  • Version of the Library used

Additional context
Add any other context about the problem here.

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added

Metadata

Metadata

Assignees

Labels

Azure.CoreClientThis issue is related to a non-management package

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions