我有以下 nuspec 文件:
<files>
<file src="..\.BuildScripts\Tools\*.ps1" target="tools" />
<file src="..\Build\Results\*.*" target="content" exclude="*.txt" />
</files>
当我运行时NuGet pack project.nuspec
,该过程完成而没有任何错误,但是创建的包的工具目录是空的。当我将第一行的路径更改为不存在的路径时,我确实收到错误 ( File not found
)。
NuSpec 文件有什么问题?