Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Numerics.Vectors NuGet package does not work with F# #15138

Closed
FrankNiemeyer opened this issue Sep 5, 2015 · 6 comments
Closed

System.Numerics.Vectors NuGet package does not work with F# #15138

FrankNiemeyer opened this issue Sep 5, 2015 · 6 comments
Assignees
Milestone

Comments

@FrankNiemeyer
Copy link

The System.Numerics.Vectors package (v4.1.0) doesn't seem to work correctly with F#: Whenever I try to use it, it installs correctly, but the compiler always refers to the corresponding .NET 4.6 reference assembly ("C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.6\System.Numerics.Vectors.dll", in my case) instead of the downloaded assembly in the packages directory.

When installing the NuGet package into a C# project, it found that a <HintPath> item was added to the csproj file, redirecting the reference to the proper assembly (e.g. <HintPath>..\packages\System.Numerics.Vectors.4.1.0\lib\net46\System.Numerics.Vectors.dll</HintPath>). For F# projects however this <HintPath> is not added to the fsproj file. Adding it manually fixes the problem.

@weshaggard
Copy link
Member

cc @mellinoe @KevinRansom

@yishaigalatzer
Copy link

What version of NuGet and visual studio are you using?

@mellinoe
Copy link
Contributor

mellinoe commented Oct 2, 2015

I tried this just now with version 3.2.60914.10516 (latest on the VS gallery), and it still repros.

@yishaigalatzer
Copy link

Added a comment on the nuget bug, this looks like a difference in behavior between the F# system and the C# project system. I'm currently assuming that the fix will come from F# or that we get guidance and roll it into NuGet 3.3. For now closing the Nuget bug, if we change our mind we can re-open it.

CC @Pilchie

@mellinoe
Copy link
Contributor

As this is an F# project system bug, I'm closing this for now.

@dsyme
Copy link

dsyme commented Feb 7, 2016

@mellinoe @yishaigalatzer Thanks for doing the investigation .

No issue was raised http://github.com/Microsoft/visualfsharp when you closed this. Please always make sure that you raise an appropriate issue when closing a bug as external (and add a link). Thanks!

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 1.0.0-rc1 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Jan 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants