我要在这里提出几个问题......首先,使用NuGet可以从几个DLL创建一个包?没有Visual Studio项目,只有命令行和一些预编译的DLL文件。在lib文件夹之外的NuGet汇编
二,假设可能,为什么我不断得到“lib文件夹之外的程序集”警告?我已经尝试了所有我能想到的方法来获取关联的程序集,以将自己添加为NuGet包内的引用。
我的文件结构如下
Root
- File1.dll
- lib
- File2.dll
- File3.dll
当我告诉的NuGet使用.nuspec这样
<?xml version="1.0"?>
<package >
<metadata>
<id>File1.dll</id>
<version>1.0.0</version>
<authors>thisguy</authors>
<owners>thisguysmom</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>This is some library</description>
<releaseNotes>Porting to NuGet</releaseNotes>
<copyright>Copyright 2012</copyright>
<references>
<reference file="File2.dll" />
<reference file="File3.dll" />
</references>
</metadata>
</package>
我收到警告收拾它。从我正在阅读的内容中,我甚至不需要在我的任何项目中定义参考节点,因为lib文件夹项目应该自动添加为参考?
有没有人明白这个NuGet混乱?
不好意思,但是什么lib文件夹?我一直在关注本教程(http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-package)从程序集创建包并没有看到任何lib文件夹 - 只是一个命令创建一个规范文件,然后一个nupkg文件 – DevDave 2013-07-23 12:16:29
@DevDave,请参阅:http://docs.nuget.org/Create/Enforced-Package-Conventions – 2015-12-18 02:37:35