![](/img/trans.png)
[英]Convertin .py files to .exe and run it in windows 10 without any installation
[英]nuget.exe pack excludes files without a dot
在 Windows 10 機器上運行命令nuget.exe pack <path-to-nuspec> -NoDefaultExcludes -OutputDirectory <path-to-output-dir>
不包括沒有點的文件,例如“Dockerfile”。 除了有關如何包含以點開頭的文件的信息外,我無法找到任何有關此的信息。
它是按預期工作還是我錯過了一些選擇? 似乎是一個奇怪的限制,因為 Dockerfile 是一個可能想要包含在 nuget package 中的東西。
我為此找到了解決方法。 在 .nuspec 文件中,只需替換
<file src="include/**/*.*" target="include" />
和
<file src="include/**/*" target="include" />
'*' 似乎也捕獲了“*.*”文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.