Lionel,
Rather than using 'using' in the code section, include the namespace via
the imports element, like this:
Getting aspnet_compiler.exe to suppress warnings is really a question
for a MS .NET support forum. However, I've looked into this recently,
and you're basically out of luck - you can't suppress the warnings. You
could perhaps consider one of the following options:
1) Fix the warnings. Sure, they'
Here's my understanding of the basic differences:
Properties and targets defined in an included script are accessible to
both the including script and to all other included scripts. The include
task is thus useful for breaking up a large or unwieldy build script
into separate files.
The nant task
Gert,
I'm concerned that the breaking change to the echo task could cause
problems for many people who use that task. Although we're having
problems with the echo task appending a newline character to the output,
it seems to me that that's not an entirely unreasonable thing for the
echo task to
Actually, in the original posting, version-info-script was a property
that was initialised with the name of the file in question, rather than
being the actual file name itself. As such, it shouldn't be escaped at
all.
Instead of either of these,
Simply use this
Chris
-Original Messag
I'm not sure how you can perform the dependency checking without
actually comparing file modification dates. However, the
task makes this a lot easier than the file::up-to-date function, when
multiple files are involved. Were you aware of it?
Chris
From: [EMAIL
Hi,
I'm using the exec task to generate a Subversion log file for my current
checkout folder, which I would normally do from the command line as
follows:
svn.exe log >svn.log
Note that the Subversion log file is obtained by redirecting the
standard output of svn.exe to a file. I can achieve t
Have a look here -
http://confluence.public.thoughtworks.org/display/CCNET/Support
There's a users mailing list that's similar to this NAnt users list,
along with an online forum and FAQ.
Chris
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dix
Julian,
Have a look at the task from NAntContrib - HYPERLINK
"http://nantcontrib.sourceforge.net/"http://nantcontrib.sourceforge.net/
You script would end up looking something like this:
Nant Script
eels like a bug to me.
Chris
-Original Message-
From: Craig Beck [mailto:[EMAIL PROTECTED]
Sent: 09 November 2007 16:23
To: Chris Lambrou
Subject: RE: [NAnt-users] Bug? task doesn't cause a non-zero exit
codefrom within a nant.onsuccess target
Are you using the NUnit task? We also use CC.Ne
Hi,
I'm using NAnt as part of a continuous build process managed by
CruiseControl.NET. CCNET determines whether or not a build is a success or a
failure on the basis of the exit code of the NAnt process that carries out the
build. If my NAnt build script fails to execute any tasks (e.g. if any
Just a couple of extra pointers:
1. It's probably better to invoke cscript.exe, rather than wscript.exe.
It's essentially a console version of the windows scripting host. As
such, it's standard and error output will integrate more nicely with
NAnt, and it should also avoid any dialogs appearing,
Note that MSBuild only supports C# and VB.NET projects. If you have any
managed C++ projects, you can invoke Visual Studio directly. Run
devenv.exe /? for help on command-line arguments, but it basically boils
down to this:
"%ProgramFiles%\Microsoft Visual Studio 8\Common7\IDE\devenv.exe"
/Build
Deepak,
I'm not exactly sure what support NAnt has specifically for building VS
2005 solutions, as it's been a little while since I looked into this.
However, we solve this problem on our own build server by using an
task to invoke MSBuild, which is what VS 2005 appears to use
internally to buil
Remove the test from the do sub-element of the foreach task, and add it
to the echo task. Alternatively, if you want to perform more than just
one sub-task in the do element, place them inside an inner if task.
Chris
Like this:
Or this:
I was also asking about looping functionality fairly recently, for
fairly similar reasons. Whilst some of the other replies to your
question may have provided a more suitable approach to your particular
problem, I thought it was worthwhile pointing out how I ended up solving
the general looping pro
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary
Feldman
Sent: 13 October 2006 15:04
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Conditional looping within a NAnt script (is
there a while' task?)
Chris Lambrou wrote:
> Thanks for replying. One of the reason
Ant or NAntContrib - ah well...
Chris
P.S. More random thoughts entering my head - how about a or a
task directive that can be embedded in the loop body?
-Original Message-
From: Peter Lanoie [mailto:[EMAIL PROTECTED]
Sent: 12 October 2006 22:17
To: Chris Lambrou
Subject: [NAnt-user
Lorenzo,
Unless you include the csc element from your script file, it's difficult
to say for sure, but the most obvious question to ask is, have you
included a sub-element in your csc task? Have a look at
the bottom of the csc task's documentation page for an example.
http://nant.sourceforge.net
This may be off-base, but...
I've been running into a similar problem in .NET when running the NUnit
console runner from NCover. In this case, I also had a .NET process
(NCover) spawning another process (NUnit.Console), and waiting for it to
complete. I solved the problem by modifying NUnit.Conso
Hello all,
I'm looking for a way to perform conditional loops in a Nant script.
Essentially, I'd like to repeat a section of script whilst a condition
remains true. Nant doesn't appear to have any tasks or other script
elements that support this behaviour, so I thought I'd try to implement
my own
21 matches
Mail list logo