首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >nAnt和nAntContrib

nAnt和nAntContrib
EN

Stack Overflow用户
提问于 2010-08-16 13:20:48
回答 2查看 1.8K关注 0票数 0

我在使用提供的说明构建nAntContrib库时遇到了问题。在运行构建时,我得到了以下反馈

代码语言:javascript
复制
C:\Code\trunk\tools\nAnt-Contrib>..\nant\nant-0.90\bin\nant.exe -D:nant.dir=C:\c
ode\trunk\tools\nAnt\nant-0.90 -f:NantContrib.build
NAnt 0.90 (Build 0.90.3780.0; release; 5/8/2010)
Copyright (C) 2001-2010 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/Code/trunk/tools/nAnt-Contrib/NantContrib.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: test

  [include] C:\Code\trunk\tools\nAnt-Contrib\NantContrib.build(3,6):
  [include] Build file 'C:\Code\trunk\tools\properties.xml' does not exist.

init:


debug:

Built-in property 'nant.project.basedir' is deprecated. Use the project::get-bas
e-directory() function instead.

set-runtime-configuration:

C:\Code\trunk\tools\nAnt-Contrib\NantContrib.build(331,10): Task <ifnot> is depr
ecated.  Use the <if> task instead.
    [ifnot] C:\Code\trunk\tools\nAnt-Contrib\NantContrib.build(331,10): Attribut
e 'propertyexists' for <ifnot ... /> is deprecated.  Use <if test="${property::e
xists('propertyname')}"> instead.
C:\Code\trunk\tools\nAnt-Contrib\NantContrib.build(332,14): Task <ifnot> is depr
ecated.  Use the <if> task instead.
    [ifnot] C:\Code\trunk\tools\nAnt-Contrib\NantContrib.build(332,14): Attribut
e 'propertyexists' for <ifnot ... /> is deprecated.  Use <if test="${property::e
xists('propertyname')}"> instead.
C:\Code\trunk\tools\nAnt-Contrib\NantContrib.build(335,14): Task <ifnot> is depr
ecated.  Use the <if> task instead.
    [ifnot] C:\Code\trunk\tools\nAnt-Contrib\NantContrib.build(335,14): Attribut
e 'targetexists' for <ifnot ... /> is deprecated.  Use <if test="${target::exist
s('targetname')}"> instead.

BUILD FAILED - 1 non-fatal error(s), 7 warning(s)

C:\Code\trunk\tools\nAnt-Contrib\NantContrib.build(336,18):
No runtime configuration was specified and the current runtime (net-2.0) is not
supported by NAnt.

Total time: 0.3 seconds.

我运行的是32位Windows 7操作系统。如果我尝试使用压缩包中包含的dll,我会得到以下错误。

代码语言:javascript
复制
C:\Code\trunk\build>call ..\tools\nant\nant-0.90\bin\nant.exe /f:build-database.
xml.build
NAnt 0.90 (Build 0.90.3780.0; release; 5/8/2010)
Copyright (C) 2001-2010 Gerry Shaw
http://nant.sourceforge.net

[loadtasks] Failure scanning "C:\Code\trunk\tools\nant\nant-0.90\bin\extensions\
common\2.0\CollectionGen.dll" for extensions. Could not load file or assembly 'M
icrosoft.VSDesigner, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7
f11d50a3a' or one of its dependencies. The system cannot find the file specified
.
[loadtasks] Failure scanning "C:\Code\trunk\tools\nant\nant-0.90\bin\extensions\
common\2.0\NAnt.Contrib.Tasks.dll" for extensions. Unable to load one or more of
 the requested types. Retrieve the LoaderExceptions property for more informatio
n.
Buildfile: file:///C:/Code/trunk/build/build-database.xml.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: go

 [property] Target framework changed to "Microsoft .NET Framework 3.5".

go:

     [echo] Building!

BUILD SUCCEEDED

Total time: 0.1 seconds.

我猜这里缺少一个依赖项('Microsoft.VSDesigner'),但我希望提供的构建脚本能够阐明这个问题。

提前感谢

EN

回答 2

Stack Overflow用户

发布于 2011-04-12 15:18:13

尝试使用最新版本(NAnt 0.91-alpha2和NAntConrib 0.85)。

票数 0
EN

Stack Overflow用户

发布于 2011-11-06 19:38:32

你确定你已经安装了正确的整个.Net框架吗?(我曾经只有client profile,尽管它似乎包含所有的文件和文件夹。)

无论如何,在这里下载你需要的.net框架(不仅仅是客户端配置文件):.NET Frameworks Microsoft Downloads

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3490765

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档