【发布时间】:2011-09-26 01:40:16
【问题描述】:
有没有办法使用在发布模式下编译的代码制作 NuGet 包?或者有什么原因我应该只发布(在这种情况下在本地提供)以调试模式编译的包?
每次我从我的项目目录中调用 nuget pack 时,我在下面有 nuspec 文件,在我只在发布模式下编译的代码上,它抱怨在调试文件夹中找不到 DLL ("\bin\Debug\SomeProject.dll")。如果我在调试模式下编译它,那些文件就在那里,它会按应有的方式打包它们。
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>$id$</id>
<version>$version$</version>
<authors>$author$</authors>
<owners>$author$</owners>
<iconUrl>http://somewhere/project.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
</metadata>
</package>
【问题讨论】:
标签: nuget