Code Monkey home page Code Monkey logo

Comments (7)

martintmk avatar martintmk commented on June 9, 2024 1

The System.Diagnostics.DiagnosticSource is only included on netstandard2.0 net472 net462 and we cannot really use the one that is provided by .NET Framework. This is because we are using APIs that are only available on newer version of the library.

If I add System.Diagnostics.DiagnosticSource as per your suggestion:

  <ItemGroup>
    <PackageReference Include="Microsoft.Extensions.Options" />
    <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
    <Reference Include="System.Net.Http" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'" />
    <Reference Include="System.Diagnostics.DiagnosticSource" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'" />
  </ItemGroup>

The Polly.Extensions cannot be built anymore:

image

from polly.

martincostello avatar martincostello commented on June 9, 2024

I'm lead to believe that removing dependencies is a breaking change (in fact, I hit this today in #2003 due to changes to Microsoft.Extensions.TimeProvider.Testing dropping seemingly redundant dependencies), so if that's the case this isn't something we'd do until there's a reason for a Polly v9 if we did.

from polly.

thompson-tomo avatar thompson-tomo commented on June 9, 2024

In the case here I am referring to polyfill package's ie ones which are natively provided by the framework without it needing to be explicitly added hence I don't see it as a breaking change.

from polly.

martincostello avatar martincostello commented on June 9, 2024

Yes I understand that, and this comment is what lead me to my comment: dotnet/extensions#5058 (review)

And also the fact that it actually broke the build in #2056 when I updated to Microsoft.Extensions.TimeProvider.Testing 8.4.0 without me adding the reference.

from polly.

thompson-tomo avatar thompson-tomo commented on June 9, 2024

I am still talking about polyfill package's and as such if a client is using System.Diagnostic.DiagnosticSource in their application/library it will still build as the framework will provide the library and likely even provide a newer version.

from polly.

thompson-tomo avatar thompson-tomo commented on June 9, 2024

@martintmk let me submit a PR tomorrow my time showing the change as your sample code is not quite what I am intending.

from polly.

thompson-tomo avatar thompson-tomo commented on June 9, 2024

Issue has been addressed already as part of the 8.4.0 release which has occured, hence closing issue

from polly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.