Re: [NAnt-users] Help with testing strings

2011-11-02 Thread Christopher Brandt
You'd use conditional property assignment. First set the default property value, then conditionally re-assign it if your condition is met. So: --- X Continuous improvement is better than delayed perfection. - Mark Twain On Wed, Nov 2, 2011 at 1:51 PM, Chris Fouts wrote: > Sorry, CCNetBuild

Re: [NAnt-users] xmlpoke vs token replace for Config Files

2011-08-29 Thread Christopher Brandt
I went through a similar process a few years ago and decided to switch from Token Replace to XML Poke. I think you've done a good job of documenting the strengths and weaknesses of each approach. in general I think XML Poke is cleaner. The only real problem I found was that XML Poke wouldn't work w

Re: [NAnt-users] Restarting a script conditionally

2011-08-09 Thread Christopher Brandt
We have set up an environment where we can conditionally rebuild components, if they've changed without having to rebuild the entire system. Doing so requires careful management of dependencies. If an interface or common datatype changes, then you pretty much need to rebuild everything. But if the

Re: [NAnt-users] Help with buildfile compiling a C#-library containing references to libraries in a sub-directory

2011-06-22 Thread Christopher Brandt
older >> >> hth >> Dominik >> >> Am 21.06.2011 07:29, schrieb Heintz, Aleksander: >> >>> That works, but I would like to be able to maintain some hierarchy of >>> the files. Isn't that possible? >>> >>> On Tue, Jun 21,

Re: [NAnt-users] Help with buildfile compiling a C#-library containing references to libraries in a sub-directory

2011-06-20 Thread Christopher Brandt
Have you tried moving all of the dependencies (ie, Should.Fluent.dll ) into the same directory as the executable? --- Chris. Continuous improvement is better than delayed perfection. - Mark Twain On Mon, Jun 20, 2011 at 12:13 PM, Heintz, Aleksander wrote: > I'm having trouble by trying to write

Re: [NAnt-users] Are people still using NAnt

2011-03-14 Thread Christopher Brandt
We rely heavily on NAnt and I fear it would be a major under-taking to move away from it. We've had no problems with it until .Net 4.0. Luckily, we can build on our build server, but I get the mysterious security exceptions when trying to build on my local machine. That problem does need to be add

[NAnt-users] Building For Mono From Windows

2010-12-29 Thread Christopher Brandt
I'm stumped on how to get a mono build of a C# project with NAnt. I'm using the 0.90 build. The problem seems to be that NAnt isn't passing the reference assemblies through to gmcs. Attempting to building the following file with NAnt results in the error: [csc] C:\Temp\HelloMono\hello.cs(3,14): e

Re: [NAnt-users] nant in regular cruisecontrol

2010-11-16 Thread Christopher Brandt
To clarify, by "regular cruisecontrol" do you mean you're not using CruiseControl.Net? --- Chris Continuous improvement is better than delayed perfection. - Mark Twain On Tue, Nov 16, 2010 at 8:00 AM, Adam Bruss wrote: > Thanks but I’m trying to use nant from regular cruisecontrol. There is n

Re: [NAnt-users] NAntContrib seems rather dead?

2010-04-21 Thread Christopher Brandt
Is there a better way to bundle or package non-core, user contributions? I understand the need to separately encapsulate the core Nant functionality. But I'm not sure if I understand the need to have a project that tries to build all the extra bits into one thing (NAnt.Contrib.Tasks.dll). Seems lik

Re: [NAnt-users] C# sharp scripting and NAnt + CCNet

2010-04-21 Thread Christopher Brandt
Simon, I wouldn't turn to CCNet just for it's built in ability to work with SVN. It's not at all difficult to run commands against SVN from NAnt. As a matter of principle, all of our build files have the ability to update the local copy of the source code they are building. This ensures that I can

Re: [NAnt-users] C# sharp scripting and NAnt + CCNet

2010-04-20 Thread Christopher Brandt
I think you might want to cut the CCNet part out of that solution. CCNet gives you a nice interface to start the build, but it sounds like you want it to prompt the DBA for credentials which you are unlikely to achieve. I would recommend having the DBA simply run NAnt from a command line, then your

Re: [NAnt-users] C# sharp scripting and NAnt + CCNet

2010-04-20 Thread Christopher Brandt
Hi Simon, CCNet is generally used for automated/unattended builds. What is the core problem you are trying to solve with this solution, ie, why do you want user input during a CCNet build? --- Chris. Continuous improvement is better than delayed perfection. - Mark Twain On Tue, Apr 20, 2010 at

Re: [NAnt-users] Using "if" to test for existence of properties

2010-04-13 Thread Christopher Brandt
Same strategy here; ensure the property exists and then use the if attribute to test its value. One place where you can use the if / unless attributes to test existence is in setting the property itself, so giving it a default value. We use the following to ensure that required properties are at le

[NAnt-users] More .net 3.5 Funnies

2010-03-26 Thread Christopher Brandt
I've found one more problem and solution to it but also have a puzzling situation. First the problem; on our build server we're running NAnt 0.86 and I'm trying to get things working with the net-3.5 target framework. One build was failing with an error: Unexpected attribute "if" on element . It

[NAnt-users] More fun with net-3.5

2010-03-25 Thread Christopher Brandt
What's the rationale for inclusion in the list of reference assemblies for each target framework? I'm looking at the NAnt.exe.config file again. It appears to be a complete list of all the framework libraries. If it is then the list is missing: System.DirectoryServices.Protocols.dll Which I beli

Re: [NAnt-users] Target Framework net-3.5 Configuration

2010-03-25 Thread Christopher Brandt
the latest nightly and it works ok. But, I explicity let the > targetframework property in the scripts. > > > > I also use the msbuild task rather then the csc task.. but I assume it uses > the same mechanism to determine which to use. > > > > BOb >

[NAnt-users] Target Framework net-3.5 Configuration

2010-03-25 Thread Christopher Brandt
This is related to my previous post on Windows 7 & VS2008. After some help I realized that the target framework on my desktop was .Net 3.5 whereas on my build server (Windows 2003 Server) it was .Net 2.0. The was causing some problems between the two environment in how csc.exe was importing includ

Re: [NAnt-users] Windows 7 with VS2008

2010-03-25 Thread Christopher Brandt
, build server is using V2.0 and my desktop is using V3.5? Thanks --- Chris. Continuous improvement is better than delayed perfection. - Mark Twain On Mon, Mar 22, 2010 at 8:29 PM, Christopher Brandt < xtopher.bra...@gmail.com> wrote: > Sorry, an important bit of info there: NAnt 0.8

Re: [NAnt-users] What are the plans for nant

2010-03-24 Thread Christopher Brandt
Diddo here. We have a fairly complex build system implemented with NAnt. It would be time consuming to change to another so I'm quite interested in keeping it alive. It would be good to know how many developers are actively working on it. I can probably find some time to do my part, since we've ma

Re: [NAnt-users] Windows 7 with VS2008

2010-03-22 Thread Christopher Brandt
Ant uses the compilers located on the machine. It doesn't come > with its own. > > On Mon, Mar 22, 2010 at 4:06 PM, Christopher Brandt > wrote: > > > > I've recently upgraded my desktop to Windows 7 and have installed VS2008 > (no > > other versions). Our bu

[NAnt-users] Windows 7 with VS2008

2010-03-22 Thread Christopher Brandt
I've recently upgraded my desktop to Windows 7 and have installed VS2008 (no other versions). Our build server is still running Windows Server 2003 with MS .Net Framework 3.5 SP1. Our software uses WCF and we've always had to to reference the System.ServiceModel and System.Runtime.Serialization dl