Giter Site home page Giter Site logo

Comments (8)

mgravell avatar mgravell commented on September 21, 2024

from pipelines.sockets.unofficial.

gaofeibupt avatar gaofeibupt commented on September 21, 2024

I used the "build.ps1" file and the compiler was .NetCore 3.1, the target framework was .NetFramework 4.7.2. I didn't use nuget.

from pipelines.sockets.unofficial.

mgravell avatar mgravell commented on September 21, 2024

from pipelines.sockets.unofficial.

gaofeibupt avatar gaofeibupt commented on September 21, 2024

Yeah, the build actually works well. The property named "Vector.IsHardwareAccelerated" is only implemented in dotnet core. How does it meet the requirements of dotnet framework? I'm not familiar with dotnet eco-system.

from pipelines.sockets.unofficial.

mgravell avatar mgravell commented on September 21, 2024

I suspect you mean that it wasn't available in the version that shipped alongside that .NET Framework version; however,
System.Numerics.Vectors is available as an OOB package via NuGet; as long as you use the appropriate version: it is implemented. For example:

csproj:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net45</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
  </ItemGroup>
</Project>

c#:

using System;
using System.Numerics;

static class P
{
    static void Main()
    {
        Console.WriteLine(Vector.IsHardwareAccelerated);
    }
}

Which works just fine - in this case, on .NET 4.5 (chosen because that is the lowest .NET Framework version that System.Numerics.Vectors supports)

from pipelines.sockets.unofficial.

gaofeibupt avatar gaofeibupt commented on September 21, 2024

Thanks to your details guide. I tried this on my local computer, and did it successfully 🤣. The "System.Numerics" is a OOB package, a standalone distribution. I need to import this OOB package manually.
I have a stupid question, does this package (System.Numerics.Vectors) released or developed by dotnet core community, instead of the dotnet framework official? 😊

from pipelines.sockets.unofficial.

mgravell avatar mgravell commented on September 21, 2024

By "this package", do you mean System.Numerics.Vectors or Pipelines.Sockets.Unofficial?

System.Numerics.Vectors is entirely official / Microsoft; the OOB here just means they have shipped updates via NuGet that apply retroactively to older frameworks; the "gotcha" here is that sometimes you get "assembly binding redirect" problems as a result - you can read all about that here (including what to do if you get a problem loading types): https://nickcraver.com/blog/2020/02/11/binding-redirects/

Pipelines.Sockets.Unofficial is - as the name suggests - completely unofficial and developed purely by myself.

from pipelines.sockets.unofficial.

gaofeibupt avatar gaofeibupt commented on September 21, 2024

Got it. Thank you very much

from pipelines.sockets.unofficial.

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.