Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Build 检查NAnt脚本中的NAnt版本_Build_Build Automation_Nant - Fatal编程技术网

Build 检查NAnt脚本中的NAnt版本

Build 检查NAnt脚本中的NAnt版本,build,build-automation,nant,Build,Build Automation,Nant,如何检查NAnt脚本中的NAnt版本以显示错误 例如,我的NAnt脚本使用NAnt版本+0.92,因此如果用户正在使用较低版本,我需要显示错误。有一个名为NAnt.version的默认属性,您可以对其进行检查。现在已弃用,您将在警告消息中看到相当详细的替换内容 我不知道执行最低版本检查的简单方法,但是您可以使用,或者编写自己的任务(使用dotnet中的版本类比较它们并不难)

如何检查NAnt脚本中的NAnt版本以显示错误


例如,我的NAnt脚本使用NAnt版本+0.92,因此如果用户正在使用较低版本,我需要显示错误。

有一个名为
NAnt.version
的默认属性,您可以对其进行检查。现在已弃用,您将在警告消息中看到相当详细的替换内容

我不知道执行最低版本检查的简单方法,但是您可以使用,或者编写自己的
任务
(使用dotnet中的
版本
类比较它们并不难)