Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 将wordsAPI库添加到解决方案_C#_Visual Studio - Fatal编程技术网

C# 将wordsAPI库添加到解决方案

C# 将wordsAPI库添加到解决方案,c#,visual-studio,C#,Visual Studio,我正在尝试将单词sapi添加到我的解决方案中。以下是他们在网站上给出的说明: 使用您喜爱的IDE打开或创建C#应用程序 完成 将文件夹WordsAPI csharp添加到项目的“lib”文件夹我没有“lib”文件夹 将System.Web和WordsAPI csharp/bin/Newtonsoft.Json.dll添加到项目的“引用”我在using语句中有Newtonsoft.Json.dll。这是我在解决方案中实际得到的唯一东西 他们说这就是使用语句的样子 使用System.Web 使用S

我正在尝试将单词sapi添加到我的解决方案中。以下是他们在网站上给出的说明:

使用您喜爱的IDE打开或创建C#应用程序 完成

将文件夹WordsAPI csharp添加到项目的“lib”文件夹我没有“lib”文件夹

将System.Web和WordsAPI csharp/bin/Newtonsoft.Json.dll添加到项目的“引用”我在using语句中有Newtonsoft.Json.dll。这是我在解决方案中实际得到的唯一东西

他们说这就是使用语句的样子

使用System.Web

使用System.Collections.Generic

使用Com.Wordsapi.Www.Wordsapi.Api

使用Com.Wordsapi.Www.Wordsapi.Model

我无法添加Com.Wordsapi。。。出于某种原因使用statements。无论我把文件夹放在哪里

我试着把它放在解决方案文件夹中,解决方案本身在项目和解决方案级别。我也试过把它放到debug,bin…随便你说。Visual Studio 2015没有看到它。我已尝试联系api的支持人员,但没有得到响应


如果能为我的解决方案提供帮助,我们将不胜感激。

要添加WordsApi.dll,您必须构建它们。这些步骤大致遵循我找到的指南

  • 将wget link()粘贴到浏览器中并下载
  • WordsAPI csharp
    提取到solutions packages文件夹(我使用winrar)
  • 打开命令提示符并导航到
    WordsAPI csharp
    文件夹
  • 运行
    compile.bat
  • 回到visual studio,在项目中的引用上单击鼠标右键,然后选择“添加引用…”
  • 选择左窗格底部的浏览,然后单击浏览。。。在底部
  • 导航到
    …\WordsAPI csharp\bin\并添加
    Com.WordsAPI.Www.WordsAPI.dll`和其他.dll(如果您在NuGet中遇到依赖性问题)

  • WordsAPI csharp存在于参考文件中?WordsAPI csharp是一个包含多个文件的文件夹。Visual studio仅允许我导入文件级引用。所以不,我不能添加它。