以上提到可以发挥作用,但事实上,它篡改了你的职位,以推倒档案,如果你有情况,这实际上不可能解决你的问题。
我们所持有的问题不能登记在册,而必须与另一个DL同时存在,后者需要由Nget 登记,因此需要在校准目录中登记,但无需登记。
The nuspec reference now allows you to specify which DLLs in the lib directory get explicitly registered in the visual studio project now, you simply need to add into your nuspec file in the metadata area an explicit references list (if this does not exist the default behavior of nuget is to attempt to register everything under lib).
Here is an example nuspec file of what I mean:
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>SomePackageID</id>
<version>1.0.1</version>
<title>Some Package Title</title>
<authors>Some Authors</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Blah blah blah.</description>
<references>
<reference file="ceTe.DynamicPDF.Rasterizer.20.x86.dll" />
</references>
</metadata>
<files>
<file src="\SomeNetworkLocationceTe.DynamicPDF.Rasterizer.20.x86.dll" target="libceTe.DynamicPDF.Rasterizer.20.x86.dll" />
<file src="\SomeNetworkLocationDPDFRast.x86.dll" target="libDPDFRast.x86.dll" />
</files>
</package>
如你所知,ceTe.DynamicPDF.Rasterizer.20.x86.dll需要登记,但DPDFRast.x86.dll
仅需要在该名录中保存,以支持其他DLL和赢得的笔记,但通过一些动态参考资料,最终将复制到目的地bin目录,因为视觉演播室认为第一个DLL取决于第二个。
The original nuspec reference。