Using NAnt RC4 to build .Net 1.1 Code

S

SenthilVel

Hi

I am in a conversion project of Code from .Net 1.1 -->.Net 2.0 .

1. I am going to build all my projects with NAnt RC4 version and also with
VS2005 to check the affected Areas.
2. I have both the Versions of my code in my machine, 1.1 and 2.0.
3. My requirement is to use NAnt RC4 version for building both my 1.1 and
2.0 code ad RC4 supports both.
4. I am able to Build both the 1.1 and 2.0 code with NAnt RC4.

Here is my problem and Question:

1. when i build my 2.0 code with RC4 its perfect.
2. When i build my 1.1 code with RC4 i get messages like ..'Method is
deprecated..and so ' these messages are obtained for my .Net Framework 1.1
code...

why is NAnt RC4 --when building my 1.1 getting me these '...Deprecated...'??

As Nant RC4 supports both 1.1 and 2.0 , how can i get rid of the
'..Deprecated methods..'?

Should i do any settings do get rid of these messages when i build 1.1 with
RC4 ?

Please let me know on this ...
Thanks
Senthil
 
D

Dan Manges

SenthilVel said:
why is NAnt RC4 --when building my 1.1 getting me these '...Deprecated...'??

As Nant RC4 supports both 1.1 and 2.0 , how can i get rid of the
'..Deprecated methods..'?

Should i do any settings do get rid of these messages when i build 1.1 with
RC4 ?

Hi,

You're getting those deprecated messages because the classes or methods
you're using in your 1.1 code have been deprecated in the framework
version 2.0

You should probably be compiling your 1.1 code against the 1.1
framework. I'm pretty sure the switch to target the framework version
is /k . I think for 1.1 the syntax would be nant task_name /k:net-1.1

Hope this helps.

Dan Manges
 
S

SenthilVel

hi

These are the erros which i get when i use RC4 for compiling my 1.1 code...

O:\interface.build(561,8): Element <includes... /> for <assemblyfileset...
/> is deprecated. Use <include> element instead.
O:\interface.build(558,8): Element <includes... /> for <fileset... /> is
deprecated. Use <include> element instead.

The error says <includes... /> should be replaced by <include> .

so is this a must to get a clean build ?

thanks
Senthil
 
D

Dan Manges

SenthilVel said:
hi

These are the erros which i get when i use RC4 for compiling my 1.1 code...

O:\interface.build(561,8): Element <includes... /> for <assemblyfileset...
/> is deprecated. Use <include> element instead.
O:\interface.build(558,8): Element <includes... /> for <fileset... /> is
deprecated. Use <include> element instead.

The error says <includes... /> should be replaced by <include> .

so is this a must to get a clean build ?

thanks
Senthil

Ah, I thought you meant you were getting deprecated errors on your .NET
code. Look at the NUnit documentation - it shows how to use <include>
elements instead of <includes /> in the latest NUnit release.

Dan Manges
 
S

SenthilVel

Thanks Dan ...

Dan Manges said:
Ah, I thought you meant you were getting deprecated errors on your .NET
code. Look at the NUnit documentation - it shows how to use <include>
elements instead of <includes /> in the latest NUnit release.

Dan Manges
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top