RE: [Nant-users] NAnt equivalent to Ant's

2005-05-03 Thread Bill.Martin
Hi Brian, You need to use the task. Your properties file must contain a definition e.g. and save as properties.build. Then in another file build file you can use: Cheers, Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf

[Nant-users] Release 0.85

2005-04-20 Thread Bill.Martin
I know that RC3 has only just been release (thanks for the effort guys), but is there any projected time scale on the proper 0.85 release? I would guess that at RC3 there isn't much wrong. Is RC3 going to become the release or are there any more iterations planned? I wish to upgrade our developm

RE: [Nant-users] VS.NET Documenter

2005-04-18 Thread Bill.Martin
Sorted it. You have to also copy the interop file Interop.MSHelpCompiler.dll Thanks to those that replied. Cheers, Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Martin Sent: 15 April 2005 16:39 To: nant-users@lists.sourceforge.ne

[Nant-users] VS.NET Documenter

2005-04-15 Thread Bill.Martin
I'm not quite sure whether this is an NDoc or a NAnt problem, but I'll try here first. I wish to try building some VS.NET compatible help that I can integrate. As far as I can see, this is achieved with the VS.NET documenter, but I can't get it to work. Which assembly is the documenter defined i

[Nant-users] Path changes in RC2

2005-03-17 Thread Bill.Martin
Hi, I have a bit of a problem. We currently use a nightly build from 30-06-2004 for building our system. I am looking at upgrading to RC2, but have hit a problem with the way directories are treated. Our build script consists of a top level build file invoked by a .bat file, this then uses the

RE: [Nant-users] Multiple SourceSafe DataBases

2005-03-16 Thread Bill.Martin
Paul,   Try something like this:           password="${vss.get.password}"     localpath="${local.file}"     recursive="false"     writable="true"     dbpath="${vss.get.archive}"  

RE: [Nant-users] Fileset and loops

2005-03-15 Thread Bill.Martin
Hi Leonardo, You can do this with the task by using the file object. E.g. The block can be either a fileset definition or a refid to a fileset you've defined elsewhere. The prop.file proper

[Nant-users] task hangs

2005-03-14 Thread Bill.Martin
Hi, I'm currently working on a script to perform a daily build. For convoluted reasons, I have a separate script that extracts the latest source from the VSS archive, then I use the task to run the build.bat file for the system. I do this rather than the task as the build.bat includes some pre

[Nant-users] Iteration of XML nodes

2005-03-02 Thread Bill.Martin
Is there a simple way to do this? I have an XML file with a structure something like: What I want to do is iterate the ServerDefLine nodes and read the attributes to pass to another app (via ) It doesn't look like I can do this easily with as I have to sp

RE: [Nant-users] How do you register dlls (COM) with or >msi> tasks?

2005-03-01 Thread Bill.Martin
Title: How do you register dlls (COM) with or >msi> tasks? Hi Tom,   I think you will need to define a custom table.  There are two ways of registering COM components within an MSI database, one it to use the SelfReg table, which basically calls regsvr32 to self-register the component,

RE: [Nant-users] Format conversion to string with leading zeros.

2005-02-28 Thread Bill.Martin
Kevin,   It's probably simpler to do this sort of manipulation with script rather than using NAnt tasks and functions.  Try something like:      


RE: [Nant-users] Problem with property evaluation

If I remember correctly, the whole line will be evaluated, so you will get an error, because the message is evaluated, but not executed if the if attribute is false. I think what you need for this scenario is: Cheers, Bill -Original Message- From: T.G. Mutato [mailto:[EM

[Nant-users] Custom Action or ServiceInstall tables

There doesn't seem to be a nant-contrib users list, so I'll post this here. I'm writing an installer that needs to install a Windows service (written in C#). I had created a vdproj to install it, but it's a bit limited (and not directly callable from NAnt) so I'm moving it to use the task. I ha

[Nant-users] MSI

I know it's a nant-contrib task really, but does anyone know of where I can get some complete examples of basic tasks. The snippets in the help are sort of helpful ,but it's much clearer if you can see the whole thing together (given I'm not exactly familiar with the msi database schema). TIA,

[Nant-users] Is this a bug ...

... or a fix? I was using the nightly build from 30-06-2004, and everything worked fine. When I moved to RC1, my VBDoc task broke. There are a few reasons for this, including it needing to be rebuilt against the latest version of NAnt, and a couple of bugs in NAnt where nested classes were not ma

RE: [Nant-users] Nant and Enhancer

Is the enhancer a VS Add-in?  If so, then it may be difficult as the chances are it uses the VS object library made available in the IDE to decide what to process.  If it’s not an Add-in (or the bit of functionality you need doesn’t use the VS object library, then you could wrap it in a cus

[Nant-users] Will my application compile?

Hi folks, I am changing my build scripts to use to dynamically generate the AssemblyInfo files, however this is giving me a problem. Because the file is generated, then my compiled DLL is always out of date with respect to the source and so always gets build. What I want to do is to put a condi

[Nant-users] Key File

Hi Folks, We have (possibly foolishly) used the version of Log4net that ships with NAnt in our system, but may need to make some changes in Log4net for some specific logging requirements we have. Is the snk file used to sign the version that ships with NAnt available anywhere? The alternative is

[Nant-users] Problem with VBDoc

I know that VBDoc is not part of NAnt, but I believe that this issue is NAnt related rather than VBDoc related (though I could be wrong) I have a build script that extracts doc comments using the VBDoc tool. The script runs fine on the old version of nant I was using (nightly build 0.85_2004_06_3

RE: [Nant-users] FW: How to pass values betwwen build files

Hadzramin,   Which version of Nant are you using?  There was a bug in 0.84 and earlier versions of 0.85 where the property element in a task was incorrectly evaluated in the context of the new instance of nant rather than the calling instance.  If you’ve got an earlier version, try with

RE: [Nant-users] Nant mail

Simon, It's the attributes in the code that make a .NET component expose itself to COM, not the way it's built. You need to add the InterfaceType and GuidAttribute attributes in the assembly. What are you trying to do? Cheers, Bill -Original Message- From: Simon Burgess Sent:

[Nant-users] Quandry

I have a slight problem and wonder if anyone has any ideas. For reasons historical, I have a comma separated list of assemblies that are referenced in a compile script. I need to convert this to an AssemblyFileSet. Is there an easy way of doing this? I think I can work out how to iterate throug

[Nant-users] FW: Problem with ReferencesPath

I have sent this to the NDoc Users list, but I'll post it here in case anyone has experienced the same issue and knows the answer. (Nant seems to have a more active list that NDoc) Cheers, Bill I'm building my documentation from NAnt using the Ndoc task, but I get the same problem in the GUI usi

[Nant-users] Problem with

This could, of course, be me being stupid, but I can't get my statement to work. I have a target that builds the documentation for my code using NDoc. If the user has created a namespace summary file, then this needs including in the task. In order to keep to a standard template, I have an ta

RE: [Nant-users] Document Comments

Found it! It's another Sourceforge project called VB.Doc. It's targeted at the 1.1 framework, but if you miss out the UI project, it will compile for 1.0 without any problem. It comes with a NAnt task to invoke it, but it's targeted at 0.84, so I've re-compiled it against the nightly build to use

[Nant-users] Document Comments

I'm sure I've seen something on this (and I'm sure I even had the code for it at some point!), but I have a problem with creating document comments. We are developing in VB.NET 2002 unfortunately, and I've started putting document comments in the code (using a custom version of the VBCommenter add

RE: [SPAM] - Re: [Nant-users] getting "Error creating FileSet. Illegal characters in path" with nunit2 - Email found in subject

Very true, but it's not necessarily XML that's processing the value. If the value is passed to C# to construct a canonical path, then that may be expecting / rather than \. In this case, escaping the \ to \\ will make a difference. Cheers, Bill -Original Message- From: Merrill Corn

RE: [SPAM] - Re: [Nant-users] getting "Error creating FileSet. Illegal characters in path" with nunit2 - Email found in subject

I'm not quite sure how the parsing works etc, but I always use / in paths rather than \ just to be on the safe side. (or alternatively, you could use \\) Worth a try perhaps? Cheers, Bill -Original Message- From: Felice Vittoria [mailto:[EMAIL PROTECTED] Sent: 04 October 2004 20

RE: [Nant-users] IntelliSense for NAnt build files

Hi Matt,   At a guess, the bit you are probably missing is the schema reference in your .build file.  You need to change your declaration to something like:   name="MyApp" default="all" basedir=".">   Without this, Visual Studio does not know which sc

RE: [Nant-users] What is Nantpad worth?

First copy the xsd file from the schema folder in NAnt to the Common7\Packages\schemas\xml in your Visual Studio install.   Next, within Visual Studio, do a File|Open and browse to a .build file.   Then select the dropdown from the Open button on the file open dialog and choose Open Wit

RE: [Nant-users] Path length problem with resgen

Thanks for that Brian, I have tried shortening my path environment variable to the bare minimum (about 40 chars) but it makes no difference. I have also moved the source to the shortest path I can get (without changing names - it's a BIG project, around 1000 source files) and again it makes no di

[Nant-users] Path length problem with resgen

I have just installed the latest nightly build and my build now doesn't work. It works fine with the previous version I had (0.85 build 05/04/2004). I've included the output from the old version of nant and the new one below. Anybody seen anything similar? I've run it with the verbose output on

FW: [Nant-users] NDoc problem - 1.1 dependency?

Hi Gert, I've finally tracked down the problem I've been having below after much hair pulling. It is caused by the inclusion of the FeedbackEmailAddress property in the MSDN Documenter. If I exclude this, then the documentation builds fine. Include it and I get the Nutil:Replace() exception. I

RE: [Nant-users] NDoc problem - 1.1 dependency?

Yup, I've tried it on both 1.2 and 1.3 of NDoc through the GUI and it compiles fine. Interestingly (or maybe not!) the version of the NDoc.Core.dll in NAnt appears to be newer that the version in the latest release of 1.3 My install of 1.3 reports 1.3.1549.0 whereas NAnt (bin\lib\net\1.0) reports

[Nant-users] NDoc problem - 1.1 dependency?

I have been having a few problems with the task where it was generating 1.1 links to framework objects even though I was specifying 1.0 for the framework version. I have had a discussion with ever helpful Gert, and it would appear that this is now fixed, but there appears to be a problem. With

FW: [Nant-users] Another NDoc problem

Yes, I tried that (and meant to mention it in my original mail DOH) but it doesn't seem to have any effect. I still get all my hyperlinks pointing to v1.1. I have tried SDK_v1_0 (which is the enum value in the NDoc source, and SDK_1_0 in case the string it different to the Enum name. I have done

[Nant-users] Another NDoc problem

I have another slight problem with NDoc. I am running 0.85 (though not the latest version), and when I compile my documentation, it sets all the references to MS objects to be 1.1 of the framework, but I only have 1.0 on my machine. It would appear that the hyperlinks to the v1.1 documentation ar

RE: [Nant-users] Assembly references in NDoc

Sorry Gert, my mistake. I was only half awake and misread your reply as meaning a ReferencesPath attribute on the element, rather than a property definition within the element. I can definitely look at the NDoc site to get details of the properties here. Cheers, Bill -Original Message--

RE: [Nant-users] Assembly references in NDoc

Great, thanks Gert. The Documenters don't appear to be documented in the help for NAnt, it only lists and . Should I be looking at NDoc documentation for this? Cheers, Bill -Original Message- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: 30 June 2004 19:43 To: Bill Ma

[Nant-users] Assembly references in NDoc

Hi, I'm implementing NDoc for the first time to compile the comments in my code, however I am hitting a bit of a problem. When I compile the docs, I get an error from NDoc that it cannot find some of my referenced assemblies. If I copy the referenced assemblies to the folder with my assembly the

RE: [Nant-users] Using our own test framework

Have a look here Curt.   http://nant.sourceforge.net/wiki/index.php/WritingATask   Cheers,   Bill     -Original Message- From: Curtis Zarger [mailto:[EMAIL PROTECTED] Sent: 17 June 2004 15:37 To: [EMAIL PROTECTED] Subject: FW: [Nant-users] Using our own test framework  

RE: [Nant-users] Problems since changing versions of NAnt...

Sorry yes, my keyboard can’t keep up with my fingers (or at least that’s my excuse!)   Just to clarify (sorry if you already know this).  You need to unzip the NantContrib zip and then copy everything in the NantContrib\bin folder into the NAnt\bin folder.  NAnt should then automatically

RE: [Nant-users] Problems since changing versions of NAnt...

Did you get the new version of NantContrib too and copy it into your bn folder?  Don’t forget that and are contrib. tasks not a core tasks.   HTH,   Bill     -Original Message- From: Jean-Michel Theriault [mailto:[EMAIL PROTECTED] Sent: 17 June 2004 15:24 To: [EMAIL PROTECT

RE: [Nant-users] Using our own test framework

Doug,   Rather than writing a separate exe and shelling it from NAnt (presumably you are intending to use the task?)  why not write it as a custom task, then you can call it directly from NAnt.  I have written a custom task to perform certain code checks when a project is compiled and t

RE: [Nant-users] Scoping issues with task, passing properties with inheritall="false"

Which version of Nant are you using Troy?  There was a bug in .084 where properties in the task where evaluated in the context of the script being called rather than the calling script.  This is fixed in the latest nightly builds and the syntax you have should work.   HTH,   Bill  

RE: [Nant-users] Interim state on a build between SUCCEEDED and FAILED

Title: Message Doesn't work unfortunately Henry.  If I define a property in the 'parent' script it gets passed through with its value OK, but if I modify the value in the 'child' script, when I get back to the parent, it still has the original value.  I'm guessing that properties are cascaded

RE: [Nant-users] Interim state on a build between SUCCEEDED and FAILED

Title: RE: [Nant-users] Interim state on a build between SUCCEEDED and FAILED Thanks for that Henry,   It's not quite what I want to do, but it has given me a couple of ideas.  Your idea of defining a property is good, I can do this inside my task and add or modify the property on the projec

[Nant-users] Interim state on a build between SUCCEEDED and FAILED

I have written a custom task to perform a scan on a VS project file when the build is executed to ensure the project complies with standards (it checks that option explicit is set in a VB project for example and checks for files in the archive that aren't part of the project.) The problem I have i

[Nant-users] Excludes and includes in fileset

Is there any way to put multiple filters in an excludes block in a FileSet? I have a situation where I want to parse a list of files in a directory, but miss out for example *.build and *.vbproj. I can do this with two separate excludes lines, but it dosn't seem to work with one. i.e. Wo

RE: [Nant-users] Nant config section in external app

That works a treat, Thanks Gert. -Original Message- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: 11 May 2004 22:24 To: Bill Martin; [EMAIL PROTECTED] Subject: Re: [Nant-users] Nant config section in external app NAnt needs the section to load platform and framework configuration

[Nant-users] Nant config section in external app

I have written a custon task for checking certain elements of a vs project file when the build is performed, and have a UI test harness that invokes it. However, having upgrades to 0.85, I find that the app crashes complaining that I need a seciotn in my app.config file for the test harness exe.

RE: [Nant-users] unexpected ${nant.project.buildfile} behaviour

Title: Message What version of NAnt are you using?  This was a bug a few weeks ago that Gert kindly fixed where properties were evaluated in teh context of the "shelled" NAnt instance rather than the master instance.  It works in the current nightly builds.   Cheers,   Bill   -Origina

RE: [Nant-users] / vs. \

>From what I can tell, NAnt the '\' character is treated as an escape character as it is in the CLR, therefore to use it you need to escape it first (i.e. '\\') I haven't done enough investigation to be sure exactly when this applies, but to be on the safe side, I have used '/' throughout my build

RE: [Nant-users] Properties problem on task

Great, Thanks Gert. At the risk of seeming overly cautious, could I ask how stable the nightly builds are? Am I safe to use them as the basis of building our software? If not, then what is the likely release date for 0.85? Many thanks, Bill -Original Message- From: Gert Driesen [

[Nant-users] Properties problem on task

Hi, I have a bit of a problem with the task and can't see what's wrong. Below is a copy of my build script and the associated output. According to the documentation, I should be able to use a property value in my current project to pass through top a new NAnt instance, but it seems to be failing

RE: [Nant-users] Problem with vssget

DOH! Thanks Florian, you're right. I've been spending too long writing Ant scripts for java and keep forgetting to turn my slashes the other way round in NAnt etc. Cheers, Bill -Original Message- From: Florian Benischke [mailto:[EMAIL PROTECTED] Sent: 30 March 2004 12:45 To:

RE: AW: [Nant-users] Solution Task and Strong Names

Yup, you're right. I've just tries it in C# and it's a no go. VB seems to cope OK with referencing the .snk from the source directory. Interestingly, if you create a blank project in both languages, the C# one has helpful tips in the AssemblyInfo.cs file on how to create and reference a keyfile

[Nant-users] Problem with vssget

Another mail! I have a wee problem with the task in NAnt-contrib. This is what my target definition looks like: However when I execute it I get the following error: Failed to open database The SourceSafe database path guest does not ex

[Nant-users] Optional bits in a task

Hi Folks, First off, my specific problem: Using the task in NAnt-contrib, I want to optionally specify a version in the properties I pass to the project, however if I pass nothing, then I get an error that no version has been specified. Is there any way to specify a version of "latest"? Alterna

RE: AW: [Nant-users] Solution Task and Strong Names

"... Are you sure this works from Visual Studio ? From what I've read you should ..." It definitely works, but I don't trust VS too much to be reliable. It has a nasty habit of trying to be "helpful" and finding files in different locations because it can't find them where they should be. This

RE: AW: [Nant-users] Solution Task and Strong Names

I'm slightly confused (it doesn't take much!). Which tasks have been modified? I raised the same problem last week (see "Problem with vbc task" post) and Gert kindly provided the response that VS tries the path to the Key file first from the current directory, and if it can't find it there, then

RE: [Nant-users] Problem with vbc task

It looks like the same is true for vbc too. Thanks for that Gert. The ..\..\ works in the IDE because the actual build path is \obj\debug and then file gets copied to the \bin folder whereas I'm building straight into the \bin folder with vbc so ..\..\ goes to the wrong place. If I change it to

RE: [Nant-users] Problem with vbc task

Big apologies for point 1 - It was me being stupid. I had closed the vbc tag in the wrong place with a bit of cut and paste so my default namespace was not getting set therefore the imported namespace didn't exist. Issue 2 is still a problem though if anyone has any thoughts. Cheers, Bill

[Nant-users] Problem with vbc task

Hi Folks, I'm having a couple of problems with the vbc task and wonder if anyone can shed any light on them: 1) In one of the projects, the author has defines a class with static methods on it. This is then imported into a second class so the methods may be used without reference to the clas

RE: [Nant-users] Properties files

Marvellous, that will do the job nicely thanks Jarek. Cheers, Bill -Original Message- From: Jaroslaw Kowalski [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 15:38 To: Bill Martin; [EMAIL PROTECTED] Subject:Re: [Nant-users] Properties files It is possible through task.

[Nant-users] Properties files

Hello folks, I am new to Nant, but have done a bit in Ant compiling Java solutions. My question is, is there any equivalent to the task that existed in Ant? The task in Nant only appears to let me set one property at a time. I would like to set my build properties in a separate file and impor