NUGETパッケージカスタムパッケージに関する参照を追加しない
-
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).
所属していません StackOverflow