Nuspec
<files>
<file src="https://raw.githubusercontent.com/030/chocolateyautomatic/master/common/Uninstall-ChocolateyZipPackage030.ps1" target="tools" />
</files>
结果
文件不会被添加到工具目录
运行cpack
表示下列内容:
Calling 'C:\ProgramData\Chocolatey\chocolateyinstall\nuget.exe pack -NoPackageAnalysis
Attempting to build package from 'eclipse.nuspec'.
The given path's format is not supported.
尝试2
<files>
<file src="path\to\chocolateyautomatic\common\Uninstall-ChocolateyZipPackage030.ps1" target="tools\Uninstall-ChocolateyZipPackage030.ps1" />
</files>
结果两个
的The given path's format is not supported.
问题已经消失,但Uninstall-ChocolateyZipPackage030.ps1
文件不被添加到工具目录。
是你的 标记 标记?换句话说,整个文件看起来像什么? –
Swoogan
2014-12-01 21:51:52
@Sogogan https://github.com/030/chocolateyautomatic/blob/master/eclipse/eclipse.nuspec – 030 2014-12-01 22:26:47