简体   繁体   English

nuget.exe 包不包括没有点的文件

[英]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.

相关问题 将 .py 文件转换为 .exe 并在 Windows 10 中运行它,无需任何安装 - Convertin .py files to .exe and run it in windows 10 without any installation Nuget 3.2.0不在项目中添加其他文件/文件夹 - Nuget 3.2.0 don't add additional files/folder in project 没有安装 conda.exe 的 Anaconda - Anaconda installed without conda.exe 如何从Windows 10(ubuntu)bash启动.exe文件? - How to launch .exe files from windows 10 (ubuntu) bash? 在没有任何用户提示的情况下安装CitrixReceiver.exe - Installing CitrixReceiver.exe without any user prompts 同时并静默地从批处理文件运行多个.exe文件 - Run Multiple .exe Files from a Batch File Simultaneously and Silently Windows 10 用户无法执行 AppExecLink 重解析点 .exe 文件 - Windows 10 user unable to execute AppExecLink reparse point .exe files 创建 Windows 10 没有 ecmangen.exe 的自定义日志? - Creating Windows 10 Custom Logs without ecmangen.exe? 由于 vmwp.exe 文件锁定,Visual Studio 构建在将文件复制到 bin 目录时失败 - Visual studio build fails while copying files to the bin directory due to file locks by vmwp.exe 我可以在没有 explorer.exe shell 的情况下调用 Windows 10 Wifi 设置屏幕吗? - Can I call Windows 10 Wifi settings screen without explorer.exe shell?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM