Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/333.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# 我如何创建一个依赖于以下包的包;目标项目“;?_C#_Nuget_Chocolatey - Fatal编程技术网

C# 我如何创建一个依赖于以下包的包;目标项目“;?

C# 我如何创建一个依赖于以下包的包;目标项目“;?,c#,nuget,chocolatey,C#,Nuget,Chocolatey,我正在尝试制作一个巧克力包装。我最初创建了一个没有任何依赖项的版本,我只是将一个exe文件放在tools/bin目录中,然后制作了一个简单的nuspec文件,这将正确地将exe文件安装到路径中,这就是这个内部工具所需的全部内容 然而,该项目现在已经进行了重组,因此它依赖于外部依赖关系。依赖项是与主项目位于同一存储库中的nuget包。要添加依赖项,我将其添加到依赖项部分。VisualStudio中的项目本身也依赖于相同的。这是我的nuspec文件:(我删除了一些由rm标记的数据,但它不应该影响它。

我正在尝试制作一个巧克力包装。我最初创建了一个没有任何依赖项的版本,我只是将一个exe文件放在tools/bin目录中,然后制作了一个简单的nuspec文件,这将正确地将exe文件安装到路径中,这就是这个内部工具所需的全部内容

然而,该项目现在已经进行了重组,因此它依赖于外部依赖关系。依赖项是与主项目位于同一存储库中的nuget包。要添加依赖项,我将其添加到依赖项部分。VisualStudio中的项目本身也依赖于相同的。这是我的nuspec文件:(我删除了一些由rm标记的数据,但它不应该影响它。其他一切都是一样的)


关于添加此依赖项,我做错了什么?

这是一个非常古老、愚蠢的nuget打包问题。包LispParsingLibrary中有一个名为“content”的文件夹。这意味着您的包中还需要一个内容文件夹

我们根本不建议这样做。请要求LispParsingLibrary的维护人员删除该文件夹,或在安装时创建该文件夹,并将文件复制到其中


我以为我们有一个问题来跟踪这一点,但我补充了一个相关的问题是LispParsingLibrary似乎没有内容文件夹。例如,在NuGet Package Explorer中打开它,只会显示一个带有dll的lib/net45文件夹,而不会显示任何内容文件夹。@Jake这个LispParsingLibrary包在哪里?我在Nuget或巧克力上看不到。
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not remove this test for UTF-8: if “Ω” doesnt appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
   <metadata>
      <!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages -->
      <id>lisp-translator</id>
      <title>lisp-translator (Install)</title>
      <version>0.1.0</version>
      <authors>rm</authors>
      <owners>rm</owners>
      <summary>rm</summary>
      <description>rm</description>
      <projectUrl>rm</projectUrl>
      <tags>lisp-translator admin</tags>
      <copyright />
      <licenseUrl>rm</licenseUrl>
      <requireLicenseAcceptance>false</requireLicenseAcceptance>
      <!--<iconUrl>http://cdn.rawgit.com/__REPLACE_YOUR_REPO__/master/icons/lisp-translator.png</iconUrl>-->
      <dependencies>
         <dependency id="LispParsingLibrary" version="1.1.0.17190" />
      </dependencies>
      <releaseNotes />
   </metadata>
</package>
lisp-translator not installed. An error occurred during installation:
 External packages cannot depend on packages that target projects.
The install of lisp-translator was NOT successful.
lisp-translator not installed. An error occurred during installation:
 External packages cannot depend on packages that target projects.

Chocolatey installed 0/1 package(s). 1 package(s) failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures:
 - lisp-translator