我有带有一些自定义测试实用程序的 NuGet 包。它的项目正在引用MSTest.TestFramework
and MSTest.TestAdapter
NuGet 包和相应的依赖项在 nuspec 文件中指定。 Files 部分仅指定要添加的项目本身的 pdb 文件。
然而,我不断获得与以下相关的 DLLMSTest.TestAdapter
in content
NuGet 包的文件夹。为什么会出现这种情况?我无法通过文档弄清楚。我可以以某种方式配置依赖项以不包含任何文件吗?
我的 nuspec 看起来像这样
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>TestUtils</id>
<version>1.0.0</version>
<title>TestUtils</title>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Test utilities</description>
<dependencies>
<dependency id="MSTest.TestFramework" version="1.1.18" exclude="contentFiles"/>
<dependency id="MSTest.TestAdapter" version="1.1.18" exclude="contentFiles"/>
</dependencies>
</metadata>
<files>
<file src="bin\$configuration$\$id$.pdb" target="lib\net461"/>
</files>
</package>
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)