Coder Social home page Coder Social logo

Comments (7)

hansmbakker avatar hansmbakker commented on June 9, 2024

Well done! As a feedback I would recommend to multitarget to both net5.0 and netstandard2.0 where possible, so that UWP projects can still make use of it.

from aforge.net.

hansmbakker avatar hansmbakker commented on June 9, 2024

Would it make sense for you to collaborate with @Andy9FromSpace in #42?

from aforge.net.

Micke3rd avatar Micke3rd commented on June 9, 2024

UWP is still using standard 2.0 ? Oh ok. Then if a user will raise the hand he needs it, I'll revert related commits.
If that doesnt lead to a compilable version, I'll use/merge Andy9FromSpace's branch, good point.

Animator posted in https://github.com/microsoft/ProjectReunion/issues/105 a description, how he use .Net5 with UWP. Maybe that already delivers what is neccessary.

from aforge.net.

hansmbakker avatar hansmbakker commented on June 9, 2024

The solution in that topic does not result in apps you can publish, it is only a proof of concept, based on hacks, that works in debug mode (because then the normal compiler is used).

When you publish an app to the store it gets compiled using .Net Native which does not support .net 5.

If you allow for multitargeting to both netstandard2.0 and net5.0 then you can support all people.

By the way, what do you miss in netstandard2.0 which is in the pr I mentioned already?

from aforge.net.

Micke3rd avatar Micke3rd commented on June 9, 2024

"By the way, what do you miss in netstandard2.0 which is in the pr I mentioned already?"
You mean, why I updated targetframework to .Net5 ? Mainly to use the actual version.

from aforge.net.

hansmbakker avatar hansmbakker commented on June 9, 2024

I understand, but when you have a Net5.0 project, you could still reference aforge.net if that targets netstandard2.0.

Functionally there is no difference, unless you want

  1. to modify the aforge.net code itself and use new language features that need c#9/.net5 inside the aforge.net library (e.g. if you want to add Span functions to the library)
  2. to have a shorter dependency chain (I don't have the details readily available)

In these two cases it helps to offer a .net 5 version of aforge.net. Especially for the second point, multitargeting is enough (adding both Net5.0 and netstandard2.0 as target frameworks). For the first part, I'm not sure whether multitargeting is possible.

from aforge.net.

Micke3rd avatar Micke3rd commented on June 9, 2024

Wait - the targetframework setting isnt anymore part of the projectfiles.
I described in the readme.md how you could define it centraly in the Directory.Build.props in your main project and inherit from there. In the example I showed how it would look like for .Net 5, but this snippet is not commited for the very reason not influence central settings.
The AForge.sln file is also primarly an example to show, that and how projects should be connected. In andrewkirillov's original are many isolated solutions, although their projects are logically dependant.
E.g. the unit tests had therefore no references to the actual code, only to the last compiled assemblies.

from aforge.net.

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.