Coder Social home page Coder Social logo

Comments (6)

vpenades avatar vpenades commented on May 20, 2024

Which version of SharpGLTF are you using?
Which framework are you targeting? I suspect NetFramework 4.6 or 4.7?
Is your csproj old style, or the new SDK style?

You can try one of those solutions:

https://github.com/dotnet/corefx/issues/30106#issuecomment-395185748

Let me know if it solves your issue

from sharpgltf.

Imaver avatar Imaver commented on May 20, 2024

Thank you for such a quick reply!

SharpGLTF version 1.0.0-alpha007
Framework 4.7.1 also just reproduced the difficulty with 4.7.2
old style of the csproj

Thank you for the solutions link, I've tried them previously I will double check them again now.
Keep you updated

from sharpgltf.

vpenades avatar vpenades commented on May 20, 2024

I've just created a console app test project, old style, targeting net471 and it seems to be working fine.

I've seen similar issues when the main application, or another dependency, is also using System.Numerics.Vectors, or even worse, a different version of system.Numerics.Vectors.... in that case, the first dependency that needs System.Numerics.Vectors loads it successfully, and all others fail.

This all happens because old style csproj arranges the dependencies to require the exact version match.

New SDK csproj is more friendly about dependencies, so, if it's possible for you to switch to new SDK csproj style, it might solve your problem.

from sharpgltf.

Imaver avatar Imaver commented on May 20, 2024

vpenades,
Thank you very much for the useful link and for the extensive explanation.

In my specific case, I needed to include a dependent assembly configuration in the starting project.
If the same configuration is applied in a newly created library with SharpGltf referenced that was part of the solution - it didn't work.

So in case somebody experiences something similar - make sure that dependendAssembly is configured correctly in your starting project inside. App.config file

Use this example:

<dependentAssembly> <assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" /> </dependentAssembly>

from sharpgltf.

vpenades avatar vpenades commented on May 20, 2024

Hi @Imaver

I've just uploaded new packages of SharpGLTF. I while ago I realized that Net.Standard 2,0 allows for implicit System.Numeric.Vectors dependency, so there's no need to explicitly reference system.numerics vectors.

You can try the latest packages (Alpha0008) and see if it solves your problem.

from sharpgltf.

Imaver avatar Imaver commented on May 20, 2024

Hi @vpenades,
Thank you very much for keeping me up to date!
I will check the new version

from sharpgltf.

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.