基本 Nant 任务
我正在创建一个简单的 Nant 脚本,该脚本将利用 assemblyname::get-version 函数,该函数记录在此处: http://nant.sourceforge.net/release/0.85/help/functions/ assemblyname.get-version.html
我遇到了失败“未知功能'version::get-major-version' .dll 确实存在于我运行 nant 的目录中,我通过打开 cmd 提示符并 cd'ing 到该目录并使用命令来执行此操作。 'nant'
任何帮助表示赞赏!
<target name="updater">
<echo message = "Hello!" />
<echo message="${version::get-major-version(assemblyname::get-version(assemblyname::get-assembly-name('nunit.util.dll')))}" />
</target>
I'm working on creating a simple Nant script that will utilize the assemblyname::get-version function which is documented here: http://nant.sourceforge.net/release/0.85/help/functions/assemblyname.get-version.html
I'm getting a failure "Unknown function 'version::get-major-version'. The .dll is indeed present in the directory that I'm running nant. Which I'm doing so by opening up the cmd prompt and cd'ing to the directory and using the command 'nant'
Any help is appreciated!
<target name="updater">
<echo message = "Hello!" />
<echo message="${version::get-major-version(assemblyname::get-version(assemblyname::get-assembly-name('nunit.util.dll')))}" />
</target>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
assemblyname::get-version <的文档/code>
包含一个错误。如果您查看版本函数的文档你会发现它应该是
version::get-major
而不是version::get-major-version
。The documentation of
assemblyname::get-version
contains a bug. If you take a look at the documentation of version functions you will find out it should beversion::get-major
instead ofversion::get-major-version
.