none
Unable to install system.numerics.vectors

    Question

  • Hi,

    I am using VS 2015 community edition on Windows 10.  I want to install system.numerics.vectors and it comes up with the following error:

    Severity Code Description Project File Line Suppression StateError

    Could not install package 'System.Numerics.Vectors 4.3.0'. You are trying to install this package into a project that

    targets 'native,Version=v0.0', but the package does not contain any assembly references or content files that are

    compatible with that framework. For more information, contact the package author. 0


    If I start new project c++ universal windows.  I get this error.  There is no native code in this project.  I put this up on the NuGet site a month ago a reply.  

    https://github.com/NuGet/Home/issues/3812

    Suggestions?  Thanks

    Tom



    Thursday, November 24, 2016 4:57 PM

All replies

  • Hi SiliconValleyDoby,

    Thank you for posting in MSDN forum.

    >>targets 'native,Version=v0.0',but the packagedoes notcontain any assembly references orcontent files that are compatible withthat framework

    The error message shows that the package doesn't meet your project target requirement.

    For this issue, I did a test on my VS, create a C# project and a C++ one, add this package to each solution, the system.numerics.vectors is not compatible on the C++ project, but work with C#.

    1. You could download the NuGet Package Explorer 3.19 from the following link:

    https://npe.codeplex.com/releases/view/629447

    2. Then manually download the system.numerics.vectors here:

    https://www.nuget.org/packages/System.Numerics.Vectors

    3. Open the system.numerics.vectors  with NuGet Package Explorer。

    As we could see as below, these lib support MonoAndroid, .Net Framework, Xamarin etc platform, but not support on the C++ platform:

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, November 25, 2016 6:33 AM
    Moderator
  • There is clearly a mistake at Microsoft or NuGet.  The documentation shows c++ examples.  Why do that if it was not intended to work with c++ (managed).  

    https://msdn.microsoft.com/en-us/library/system.numerics(v=vs.111).aspx

    All of the classes and structures have c++ examples.  

    Tom

    Tuesday, November 29, 2016 1:16 AM
  • The .net framework is what should work, but does not.  NuGet installation should look for a /clr application instead of rejecting outright.  

    Tom

    Tuesday, November 29, 2016 1:23 AM
  • Hi Tom,

    I agree with you that " System.Numerics Namespace " vector works with C++, it's a system dll.

    But the one you mentioned is different from the Nuget gallery System.Numerics.Vectors.

    The Nuget package is as a project, the platform which this Nuget package supports depends on its author, he settled the project's Target Platform, but this package indeed is not supported on C++.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, November 29, 2016 1:57 AM
    Moderator