nAnt 和 nAntContrib
我在使用提供的说明构建 nAntContrib 库时遇到问题。运行构建时,我收到以下反馈:
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 操作系统。如果我尝试使用 zip 中包含的 dll,则会收到以下错误。
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”),但希望提供的构建脚本可以阐明该问题。
提前致谢
I'm having problems building the nAntContrib library using the instructions provided. When running the build I get the following feedback
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.
I am running 32bit Windows 7 OS. If I try and use the dll that is included in the zip I get the following error.
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.
I am guessing there is a dependency missing ('Microsoft.VSDesigner') but was hoping the build script provided could shed some light on the problem.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用最新版本(NAnt 0.91-alpha2 和 NAntConrib 0.85)。
Try using the latest versions (NAnt 0.91-alpha2 and NAntConrib 0.85).
您确定安装了正确且完整的 .Net 框架吗? (我曾经只有客户端配置文件,尽管框架文件夹似乎包含所有文件和文件夹。)
无论如何,请在此处下载所需的.net框架(不仅仅是客户端配置文件):
.NET Framework Microsoft 下载
Are you sure you have the right and the whole .Net framework installed? (I used to have client profile only, though it seems framework folder had all files and folders.)
Anyway, download your needed .net framework here (not only client profile):
.NET Frameworks Microsoft Downloads