在Windows 10计算机上运行命令nuget.exe pack <path-to-nuspec> -NoDefaultExcludes -OutputDirectory <path-to-output-dir>
不包括没有句点的文件,例如";Dockerfile";。我找不到任何关于这方面的信息,除了关于如何包含以句点开头的文件的信息。
它是按预期工作还是我错过了一些选择?这似乎是一个奇怪的限制,因为Dockerfile是一个可能想要包含在nuget包中的东西。
我找到了一个解决方案。在.nuspec文件中,只需替换
<file src="include/**/*.*" target="include" />
带有
<file src="include/**/*" target="include" />
似乎"*"抓住了"*"*"文件。