如何避免nuspec中的代码重复?

时间:2014-12-03 18:45:36

标签: chocolatey nuspec

nuspec文件包含其他nuspec文件所需的多个段落,例如:

### Optional installation commands:

Issue `-packageparameters '"/InstallLocation=C:\Path\to\installationdirectory"'` to overwrite the default installation directory, e.g. `choco install eclipse -packageparameters '"/InstallLocation=C:\temp"'` extracts the package in `C:\temp`.

### Bugs and Features:

Create an issue or comment to an existing one - https://github.com/030/chocolateyautomatic/issues

每次更改此段落时,都需要将其复制到其他nuspec文件中。

1 个答案:

答案 0 :(得分:1)

这不是真正的代码重复。你有多个包你正在做同样的事情,但每个包都是它自己不同的东西。

相关问题