Giter Site home page Giter Site logo

.NET 5 about dangl.calculator HOT 12 CLOSED

georgdangl avatar georgdangl commented on August 17, 2024
.NET 5

from dangl.calculator.

Comments (12)

GeorgDangl avatar GeorgDangl commented on August 17, 2024

Hey @Xwilarg, thank you for your issue!

The project is already targeting netstandard2.0, so it's compatible with .NET 5. We're also using it in lots of .NET 5 projects, so everything should work😀

Is there something that's not working for you?

from dangl.calculator.

Xwilarg avatar Xwilarg commented on August 17, 2024

Thanks for your quick reply, I was more asking that because of the huge amount of dependencies but at the end I'm not that sure it's related (in some projects I have the issues, in some others I don't)
image

from dangl.calculator.

GeorgDangl avatar GeorgDangl commented on August 17, 2024

I see, that looks like a lot of dependencies😀 Can you check which target your app resolves for Dangl.Calculator, is it using the netstandard2.0 or the netstandard1.1 one?

from dangl.calculator.

Xwilarg avatar Xwilarg commented on August 17, 2024

Um.. May I ask you how I can do that?

from dangl.calculator.

GeorgDangl avatar GeorgDangl commented on August 17, 2024

Good question, I don’t know😀
It seems to import the NET Standard Library 1.6, which seems a bit strange. I think that one has all the other dependncies. You are just targeting ’net5.0’ in your app, right?
Maybe that dependency comes from the Antlr4.Runtime package.

from dangl.calculator.

Xwilarg avatar Xwilarg commented on August 17, 2024

I tried with 2 projects that both target .NET 5 but only have of them have this issue so I'm not sure what I'm doing wrong

from dangl.calculator.

GeorgDangl avatar GeorgDangl commented on August 17, 2024

Can you share the project?

from dangl.calculator.

Xwilarg avatar Xwilarg commented on August 17, 2024

Sure it's this one: https://github.com/Xwilarg/Camellia/

from dangl.calculator.

GeorgDangl avatar GeorgDangl commented on August 17, 2024

Looks like the calculator isn't referenced there yet😀 But otherwise the project looks fine, nothing wrong as far as I can see that would cause this issue.

from dangl.calculator.

Xwilarg avatar Xwilarg commented on August 17, 2024

Yup I opened the issue before referencing it but if you try to add the NuGet package you'll have the issue I'm speaking about

from dangl.calculator.

GeorgDangl avatar GeorgDangl commented on August 17, 2024

Ah, that was easy to resolve then😀

The many dependencies come in transitively from the Antlr4.Runtime package. If you just install this one (without Dangl.Calculator), you see the same behavior:
image

The issue seems to come from how Antlr4.Runtime has configured it's dependencies:
image

As you can see, the only dependency compatible to net5.0 is netstandard1.1, which itself required the NETStandard.Library, thus including all the dependencies.

I don't think this is not going to cause any issues, since as far as I remember, the .NET Standard Library dependency is handled somehow different by .NET Core, it was something introduced for compatibility reasons or such.

from dangl.calculator.

Xwilarg avatar Xwilarg commented on August 17, 2024

Okay I'll do that then
I'm also closing this issue since the issue is solved, thanks a lot for your time

from dangl.calculator.

Related Issues (6)

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.