[英]nuget.exe pack excludes files without a dot
Running the command nuget.exe pack <path-to-nuspec> -NoDefaultExcludes -OutputDirectory <path-to-output-dir>
on a Windows 10 machine does not include files without a dot, such as "Dockerfile".在 Windows 10 机器上运行命令
nuget.exe pack <path-to-nuspec> -NoDefaultExcludes -OutputDirectory <path-to-output-dir>
不包括没有点的文件,例如“Dockerfile”。 I have not been able to find any information on this, apart from information on how to include files starting with a dot.除了有关如何包含以点开头的文件的信息外,我无法找到任何有关此的信息。
Is it working as intended or am I missing some option?它是按预期工作还是我错过了一些选择? Seems like a strange limitation, gives that Dockerfile is something one might want to include in a nuget package.
似乎是一个奇怪的限制,因为 Dockerfile 是一个可能想要包含在 nuget package 中的东西。
I found a work-around for this.我为此找到了解决方法。 In the.nuspec file, just replace
在 .nuspec 文件中,只需替换
<file src="include/**/*.*" target="include" />
with和
<file src="include/**/*" target="include" />
It seems that '*' catches the "*.*" files as well. '*' 似乎也捕获了“*.*”文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.