473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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
1 1575
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

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

Similar topics

1
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 |_...
2
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...
3
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,...
0
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(...
1
by: Bit byte | last post by:
I am a NANT newbie. I would like to use NAnt to automate my build processes - but have come unstuck early on in the process. I have several projects under a /src directory. There is some...
4
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...
12
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...
0
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...
1
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
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.