开发者

Basic Nant task

开发者 https://www.devze.com 2023-03-23 01:52 出处:网络
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.ge

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')))}" />


</tar开发者_开发问答get>


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 be version::get-major instead of version::get-major-version.

<echo message="${version::get-major(assemblyname::get-version(assemblyname::get-assembly-name('nunit.util.dll')))}" />
0

精彩评论

暂无评论...
验证码 换一张
取 消