NUGETパッケージカスタムパッケージに関する参照を追加しない

StackOverflow https://stackoverflow.com/questions/6064943

  •  16-11-2019
  •  | 
  •  

質問

ニューパ社ファイルを作成しました:

<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
  <metadata>
    <id>MyPackage.dll</id>
    <version>3.5</version>
    <authors>Me</authors>
    <owners>Me</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>The description</description>
    <tags>tag1</tags>
  </metadata>
</package>
.

ファイルがストラックスされたディレクトリ内の

  • mypackage
    • アセンブリ
      • mypackage.dll
      • mypackage.nuspec

        nuget.exe pack myPackage.nuspecを使用してパッケージを作成し、ローカルソースに配置しました。Visual Studioから見つけてインストールできます。

        • DLLはパッケージディレクトリにコピーされます。
        • しかし、参照はプロジェクトに追加されません。
        • Repositories.configが作成されていません
        • packages.configが作成されていません

          私は何が足りないの?

役に立ちましたか?

解決

In case someone runs into this in the future. The solution was that the 'Assemblies' directory needed to be renamed 'lib'. The documentation was wrong (been updated, now it's correct).

Big thanks to dotnetjunky over on codeplex

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top