473,597 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using NAnt RC4 to build .Net 1.1 Code

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
Jun 12 '06 #1
4 2604
SenthilVel wrote:
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
Jun 12 '06 #2
hi

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

O:\interface.bu ild(561,8): Element <includes... /> for <assemblyfilese t...
/> is deprecated. Use <include> element instead.
O:\interface.bu ild(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
"Dan Manges" <da***********@ gmail.com> wrote in message
news:G4******** **********@torn ado.ohiordc.rr. com...
SenthilVel wrote:
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

Jun 13 '06 #3
SenthilVel wrote:
hi

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

O:\interface.bu ild(561,8): Element <includes... /> for <assemblyfilese t...
/> is deprecated. Use <include> element instead.
O:\interface.bu ild(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
Jun 13 '06 #4
Thanks Dan ...

"Dan Manges" <da***********@ gmail.com> wrote in message
news:n7******** ***********@tor nado.ohiordc.rr .com...
SenthilVel wrote:
hi

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

O:\interface.bu ild(561,8): Element <includes... /> for
<assemblyfilese t... /> is deprecated. Use <include> element instead.
O:\interface.bu ild(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

Jun 15 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2507
by: Nigel Currie | last post by:
Hi all, I'm having a problem with <nant> tasks to build sub-projects into an overall solution. I have the following directory structure: JobManagerSolution |_ | JobManager |_ JobManagerController
2
3798
by: HaukiDog | last post by:
Hi, I am trying to set up my C# web project to be compiled by NANT. Everything compiles and works fine within the IDE. I have a created a NANT build file which has a simple project tag, like this: <?xml version="1.0" ?> <project name="MyProject" default="build" basedir="."> <description>The Hello World of build files.</description> <property name="debug" value="true"/>
3
4762
by: muesliflakes | last post by:
I am trying to run nunit2 from nant and get the following error: NUnit 2.0 Error: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. The doco for Nunit see: http://nant.sourceforge.net/help/tasks/nunit2.html, suggests that I
0
424
by: muesliflakes | last post by:
I wish to run Nant from my own application. I have included NAnt.Core and NAnt.DotNetTasks and calling out to NAnt as follows. StringWriter consoleOut = new StringWriter( ); Console.SetOut( consoleOut ); ConsoleDriver.Main( new string { "-buildfile:" + txtBuildFile.Text } );
1
1592
by: SenthilVel | last post by:
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.
12
18786
by: michael sorens | last post by:
So I have compiled a .dll file from a Visual Studio 2005 project containing a few dozen c# files. Now I want to automate this build using ant (have not yet looked at nant, but the rest of my complex build is done with plain ant). Could someone point me to any tutorial or other guide for doing this? I would even settle for just how to do it from a command-line.
0
1182
by: Thomas Klein | last post by:
Hello, I want to build executable files (command line) with NANT. For example I have a source file X.cs in the namespace com.mycompany.examples. The class X inherits from a class Y which is located in the package com.mycompany.examples.tech. When I try to build a executable, I get the following error message: build:
1
2058
by: Crash | last post by:
Hi all, Is there a newsgroup for NANT? Or is there some place I can post NANT questions? In case this newsgroup is Ok for NANT questions, here is my issue: Windows XP VS 2003
1
2834
by: Sam | last post by:
This is probably the wrong group to post this in, but I'm not sure where it should go. If you have suggestions as to another group to post it let me know. In our Nant build file for our application. I want to first delete 2 folders if they exist. These folders then later get created. If the folders exist, I do not get errors, but if they do not, the build fails. <delete dir="${build.root}" />
0
8263
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8021
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5842
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5421
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3876
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3917
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2393
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1492
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1226
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.