使用x64依赖项和/或转换nuspec文件解决nuget包问题 [英] Working around nuget pack with x64 dependencies and/or transform nuspec file
问题描述
你好,
我使用nuget版本3.5.0.1938和VS2015(最新更新)。
我遇到了一个问题,试图从具有x64依赖关系的源打包项目。
使用'< my-nuspec />'作为元数据。
找到packages.config。使用列为依赖项的包
无法找到'< dependency />'。确保项目已经构建。
因此,为了解决此问题,我想使用转换后的nuspec文件打包,如果可能的话。我知道配置文件等可以转换。但是,我遇到了使转换对nuspec起作用的问题。
而不是转换后的文件,我看到所有文件,原始文件和转换文件,登陆在输出文件夹中。
有人建议如何解决包装问题和/或转换问题吗?
谢谢!
$
嗨mwpowellhtx,
<感谢您在此处发帖。
>>> 我遇到了尝试从源代码打包具有x64依赖项的项目的问题。
您是否想要打包一个具有x64依赖项的项目?如果是,AFAIK,Visual Studio试图在lib目录中注册所有dll,因此在nuspec文件中的元数据中添加了一个引用元素,告诉它只注册
托管的dll:< references>
< reference file =" FANNCSharp.dll" />
< / references>同样在:
< MyPackageFiles Include ="
(MSBuildProjectDirectory)\..\Packages\MyPackage\lib \ *。*" />此外,如果可能,您可以从以下链接获得帮助:
http://nuget.codeplex.com/workitem/679
如果我不明白,请免费告诉我,你能告诉我吗?请与我们分享一个样本给我们,以便我可以重现这个错误?谢谢。
Hello,
I am using nuget version 3.5.0.1938 with VS2015 (latest updates).
I am running into a problem attempting to package projects from source that have x64 dependencies.
Using '<my-nuspec/>' for metadata.
Found packages.config. Using packages listed as dependencies
Unable to find '<dependency/>'. Make sure the project has been built.
So to workaround this I want to package using a transformed nuspec file, if possible. I know that config files and such can be transformed. However, I'm having problems getting the transform to work against the nuspec.
Instead of a transformed file, I see all the files, original and transformation files, landing in the output folder.
Would someone suggest how to resolve either the packaging issue and/or the transformation issue?
Thanks!
Hi mwpowellhtx,
Thanks for posting here.
>>>I am running into a problem attempting to package projects from source that have x64 dependencies.
Do you mean that you want pack a project which have x64 dependencies? If yes, AFAIK, Visual Studio was trying to register all the dll's in the lib directory, so added a references element to the metadata in the nuspec file to tell it to only register the managed dll:
<references> <reference file="FANNCSharp.dll" /> </references>Also in:
<MyPackageFiles Include="
(MSBuildProjectDirectory)\..\Packages\MyPackage\lib\*.*"/>Besides, if possible, you may get help from below link:
http://nuget.codeplex.com/workitem/679
If I not understand correct, please let me know for free, and could you please share us a sample to us so that wo could reproduce this error? Thanks.
这篇关于使用x64依赖项和/或转换nuspec文件解决nuget包问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!