Re: [Nant-users] Specifying which .net framework to build against with .84 rc1

2003-12-07 Thread Gert Driesen
Jason,

You are correct.  The framework to target can be set from the commandline
using the -defaultframework (or -k) switch.

In build files the current framework can be changed by setting the value of
the 'nant.settings.currentframework' property, although this may change in
the future :



Gert

- Original Message - 
From: "Morris, Jason" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 07, 2003 3:15 AM
Subject: [Nant-users] Specifying which .net framework to build against with
.84 rc1


All,

I noticed the following note in the release notes for .84

 *On systems with both the .NET Framework 1.0 and .NET Framework 1.1
installed, NAnt will now execute on the .NET Framework 1.1 by default.
Note, the default target framework has remained unchanged, and is still
.NET Framework 1.0.

The build server that my group uses has both frameworks on it, 1.0 and
1.1, however I need to specify that certain projects still build to 1.0
and others to 1.1.

How do I do this?

I see there is a command line argument

-defaultframework:
-k:

And I am assuming that the  corresponds to the "net-1.0",
"net-1.1", etc in the nant.exe.config file.

To build against 1.1, the command line would be

"nant my.build -k:net-1.1"

And to build against 1.0

"nant my.build -k:net-1.0" or just "nant my.build" since the
default target is still 1.0.

Am I understanding this correctly?

Is there any way to specify this in a property in my *.build file?

Thanks,
Jason


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users




---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


[Nant-users] Trying to auto increment my build number

2003-12-07 Thread Morris, Jason
Title: Trying to auto increment my build number






I need some advice on the best way to auto-increment my build number.


I have taken a look at the  task in the nantcontrib project, but that is not what I am looking for.  I am looking for simple ability to do arithmetic.

I want to take a property (which is a number), add one to it so that I can use it in other places within my build script.

I want to use  and  to read and persist the small xml file that represents my projects build version.  It looks like this…



  3

  2

  0

  75




So after executing my build script, the xml would look like this




  3

  2

  0

  76




I have attached a sample build file to indicate the things I would like to do.


Anyone have any advice in what would be the best way to solve this problem?  Is the 

Re: [Nant-users] Trying to auto increment my build number

2003-12-07 Thread Jaroslaw Kowalski
Maybe this will solve your problem instead (using flat file instead of xml):

http://www.mail-archive.com/[EMAIL PROTECTED]/msg01256.html

Jarek
- Original Message - 
From: "Morris, Jason" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 07, 2003 9:48 AM
Subject: [Nant-users] Trying to auto increment my build number


I need some advice on the best way to auto-increment my build number.

I have taken a look at the  task in the nantcontrib project,
but that is not what I am looking for.  I am looking for simple ability
to do arithmetic.

I want to take a property (which is a number), add one to it so that I
can use it in other places within my build script.

I want to use  and  to read and persist the small xml
file that represents my projects build version.  It looks like this...


  3
  2
  0
  75


So after executing my build script, the xml would look like this


  3
  2
  0
  76


I have attached a sample build file to indicate the things I would like
to do.

Anyone have any advice in what would be the best way to solve this
problem?  Is the 

Re: [Nant-users] Trying to auto increment my build number

2003-12-07 Thread Jaroslaw Kowalski
... and when we'll have expression evaluator in place you will be able to
write:

  

Meanwhile, you may try NAnt with Expression Evaluator test1 (not recommended
for production use as the syntax is likely to change) at:

http://jaak.sav.net/nant-ee/nant-ee-test1.zip

Jarek

- Original Message - 
From: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>
To: "Morris, Jason" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Sunday, December 07, 2003 12:20 PM
Subject: Re: [Nant-users] Trying to auto increment my build number


> Maybe this will solve your problem instead (using flat file instead of
xml):
>
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg01256.html
>
> Jarek
> - Original Message - 
> From: "Morris, Jason" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, December 07, 2003 9:48 AM
> Subject: [Nant-users] Trying to auto increment my build number
>
>
> I need some advice on the best way to auto-increment my build number.
>
> I have taken a look at the  task in the nantcontrib project,
> but that is not what I am looking for.  I am looking for simple ability
> to do arithmetic.
>
> I want to take a property (which is a number), add one to it so that I
> can use it in other places within my build script.
>
> I want to use  and  to read and persist the small xml
> file that represents my projects build version.  It looks like this...
>
> 
>   3
>   2
>   0
>   75
> 
>
> So after executing my build script, the xml would look like this
>
> 
>   3
>   2
>   0
>   76
> 
>
> I have attached a sample build file to indicate the things I would like
> to do.
>
> Anyone have any advice in what would be the best way to solve this
> problem?  Is the