我的项目有一个.nuspec文件,它引用了包含我的包的项目需要引用的第三方DLL.
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes>Locked against log4net 1.2 - less than 1.2.11 which has breaking changes</releaseNotes>
<copyright>Copyright 2012 blah blah</copyright>
<dependencies>
<dependency id="log4net" version="[1.2,1.2.11)" />
<dependency id="My.Other.Project" />
</dependencies>
<references>
<reference file="Third.Party.dll" />
</references>
Run Code Online (Sandbox Code Playgroud)
如果我尝试从.csproj和.nuspec文件的目录运行nuget.exe包My.Project.csproj,我得到
无效的程序集引用'Third.Party.dll'.确保lib目录中存在名为"Third.Party.dll"的文件.
我创建了.\ lib.\ bin\Debug\lib.\ obj\lib
并且文件位于所有三个位置.它真的想要lib文件夹在哪里?