Giter Club home page Giter Club logo

Comments (4)

DavidArno avatar DavidArno commented on July 1, 2024

Looking through various files:

SuccincT\SuccincT.csproj contains <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
SuccincT.Core\project.json depends on "NETStandard.Library": "1.6.0"
SuccincT\SuccincT.nuspec and SuccincT\nuget-pack.bat bundle SuccincT.dll and SuccincT.Core.dll into the nuget package...

but, SuccincT.Core\SuccincT.Core.xproj contains a <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> reference. Which is odd as my intention was that SuccincT.Core.dll only targeted dotnetcore.

So between me not knowing what I'm doing and Visual Studio possibly trying to be helpful, something has gone wrong. I had previously noted that with a framework 4.5.2 project that it seemed to use the dotcore dll, but I put that down to me misreading things. It doesn't explain you finding a hard dependency on v4.1, but I now know where to start trying to fix things.

I'm working on a new release to address @rubiktubik's request for JSON serialisation support (#17), so will aim to bundle a fix for this issue too in that release.

from succinct.

DavidArno avatar DavidArno commented on July 1, 2024

Update on this.

I created a .NET Framework 4.6.2 test project and added Succinc<T> via nuget. This added a dependency to SuccincT.Core.dll. Running it, it does indeed die with an error complaining it's dependent on System.Runtime v4.1. I then pointed it directly at the SuccincT.dll and it all worked correctly. So .NET Framework projects do pick up the wrong version of the dll.

I have no idea at this stage how to fix this though. So I've sought help on Stack Overflow. Hopefully I'll get a good answer there and will be able to fix this.

from succinct.

DavidArno avatar DavidArno commented on July 1, 2024

Further investigations has revealed:

  1. Succinc<T> only works with projects that target framework v4.0 or Windows 8 (not 8.1). Every other framework results in this system runtime incompatibility problem.
  2. I can hard-code dependencies into the .nuspec file to force the use of SuccincT.dll for framework v4.5+, Win 8.1+ etc.
  3. However, and this is the killer, I can't work out how to create a test project for dotnet core that is both compatible with Succinc<T> and any sort of testing framework. So I've no real idea if the core version even works with any real dotnet core project.

As the next release, v2.2, was going to be an update for JSON.Net support (which won't include dotnet core), I am going to therefore drop support for dotnet core with this release. That way I can go ahead and release next week.

from succinct.

DavidArno avatar DavidArno commented on July 1, 2024

Succinc<T> v2.2.0 is now available on nuget. This release removes the dependency on .NET Core and thus fixes this issue.

from succinct.

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.