F# 无法在Visual F中打开Fsharp.Data#

F# 无法在Visual F中打开Fsharp.Data#,f#,nuget,nuget-package,F#,Nuget,Nuget Package,我正在学习F#,在Visual F#中尝试tryfsharp.org中的一些示例代码。我使用nuget软件包控制台安装了Fsharp.Data: Install-Package FSharp.Data 'FSharp.Data 2.1.1' already installed. Adding 'FSharp.Data 2.1.1' to TryFsharp. Successfully added 'FSharp.Data 2.1.1' to TryFsharp. 当我尝试引用它时: #r

我正在学习F#,在Visual F#中尝试tryfsharp.org中的一些示例代码。我使用nuget软件包控制台安装了
Fsharp.Data

Install-Package FSharp.Data 

'FSharp.Data 2.1.1' already installed.
Adding 'FSharp.Data 2.1.1' to TryFsharp.
Successfully added 'FSharp.Data 2.1.1' to TryFsharp.
当我尝试引用它时:

#r "Fsharp.Data.dll"
Program.fs(10,1): error FS0084: Assembly reference 'Fsharp.Data.dll' was not found or is invalid

open Fsharp.Data
Program.fs(11,6): error FS0039: The namespace or module 'Fsharp' is not defined
以下是我的项目结构:

|-- ArchitectureExplorer
|-- Backup Files
|   |-- ConsoleApplication1
|   |-- ConsoleApplication2
|   |-- ConsoleApplication3
|   |-- ConsoleApplication4
|   |-- FSharpKoans
|   |-- FsharpInFinance
|   |-- TryFsharp
|   |-- Tutorial1
|   `-- Tutorial2
|-- Blend
|   |-- ItemTemplates
|   `-- ProjectTemplates
|-- Code Snippets
|   |-- JavaScript
|   |-- SQL_SSDT
|   |-- Visual Basic
|   |-- Visual C#
|   |-- Visual C++
|   |-- Visual Web Developer
|   |-- XAML
|   `-- XML
|-- Projects
|   |-- ConsoleApplication1
|   |-- ConsoleApplication2
|   |-- ConsoleApplication3
|   |-- ConsoleApplication4
|   |-- FsharpInFinance
|   |-- TryFsharp
|   |-- Tutorial1
|   |-- Tutorial2
|   `-- WpfApplication1
|-- Settings
|   |-- CurrentSettings-2015-01-17.vssettings
|   |-- CurrentSettings.vssettings
|   |-- FontsAndColorsBackup_a4d6a176-b948-4b29-8c66-53c97a1ed7d0.vssettings
|   |-- Old.CurrentSettings.vssettings
|   `-- Windows Azure Subscriptions.xml
|-- StartPages
|-- Templates
|   |-- ItemTemplates
|   `-- ProjectTemplates
|-- Visualizers
|   |-- attribcache90.bin
|   |-- autoexp.cs
|   |-- autoexp.dll
|   |-- autoexpce.cs
|   `-- autoexpce.dll
|-- nuget.config
`-- packages
    |-- Deedle.1.0.6
    |-- FSharp.Data.2.0.14
    |-- FSharp.Data.2.1.1
    |-- FsCheck.1.0.4
    `-- repositories.config

在使用它之前,我需要执行任何额外的步骤吗?

从错误消息中可以推断,您需要使用#r指令指定Fsharp.Data.dll的正确位置。它可以是相对于当前目录的,也可以是绝对目录的


或者(更简单,IMO),您可以安装并使用它的“发送到交互式”功能-只需右键单击引用中的程序集并选择此选项。

可能不是最佳解决方案,但为了在交互式F中进行测试,我使用了如下实际路径

#r "packages/FSharp.Data.2.2.5/lib/net40/FSharp.Data.dll"
#r "bin/Debug/FSharp.Data.SQLProvider.dll"

我已经安装了
F#Power Tools
,我试图右键单击
打开Fsharp.Data
,然后选择
查找所有参考
,它什么也找不到。您能告诉我更多关于如何在引用中右键单击汇编并选择此选项的信息吗?我右键单击Fsharp.Data并选择
发送到Fsharp Interactive
,我得到了引用的“C:\Users\Nick\Documents\Visual Studio 2013\packages\FSharp.Data.2.1.1\lib\portable-net40+sl5+wp8+win8\FSharp.Data.dll”。我认为这是一个成功的行动。但是当我
打开Fsharp.Data
时,它会报告
错误FS0039:命名空间或模块“Fsharp”未定义
。我不好意思告诉您,此错误是由我的拼写错误引起的:
打开Fsharp.Data
应该是
打开Fsharp.Data
。但是你推荐的电动工具非常方便。非常感谢。