.NET

.NET

Reply
Valued Contributor
64 Posts
0 Kudos
Registered: ‎05-05-2004
Post 1 of 3

What's the best way to command line build?

80 Views, 2 Replies
01-22-2006 07:32 PM
I have been using C# 2005, and I have been somehwhat successful making some small applications work. Anyway, in order to not require the installation of the .NET 2.0, I want to rebuild my apps using .NET 1.1. Since I don't have C# 2003 I guess I have to do this on the command line.

I am pretty clueless when it comes command line building, but I have learend enough to know that i need to use Nmake, or Nant, or something along those lines. Trouble is, the docs for namke aren't all that pratical, at least not for me, and Nant seems to be the same way. I also haven't had any luck finding any good tutoria or example sites that target .NET.

Could somebody be so kind to as to point me in the right direction where I can quickly learn how to make makefiles? If anybody would be willing to share any simple makefiles specifically used with C# and .NET I would be most appreciative.
Distinguished Contributor
454 Posts
3 Kudos
Registered: ‎04-07-2003
Post 2 of 3

Re: What's the best way to command line build?

01-22-2006 11:51 PM in reply to: Matt S
To build a C# application from the command line, you will need to use the C# Compiler "csc" not nmake.

Step 1, download the .NET 1.1 SDK tools: http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4070-9f41-a333c6b9181d&DisplayLang=en

Step 2, read up on C# compiler: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscomp/html/vcrefCompilerOptions.asp

You might also be able to use one of the free C# IDE's, though you will need to recreate the project information.

You also need to make sure that while developing within the C#2005 IDE, you do not use any .NET 2.0 only classes.
Ronnie Wilkins, Jr.
AMS CAD + CAFM Solutions
Sr. Solutions Developer
Autodesk Certified Instructor: Inventor
*J. Daniel Smith
Post 3 of 3

Re: What's the best way to command line build?

01-23-2006 07:28 AM in reply to: Matt S
Using .NET 1.1 with Visual Studio 2005 appears to be somewhat complicated,
see http://blogs.msdn.com/clichten/archive/2005/11/08/490541.aspx.

Dan

wrote in message news:5065740@discussion.autodesk.com...
I have been using C# 2005, and I have been somehwhat successful making some
small applications work. Anyway, in order to not require the installation
of the .NET 2.0, I want to rebuild my apps using .NET 1.1. Since I don't
have C# 2003 I guess I have to do this on the command line.

I am pretty clueless when it comes command line building, but I have learend
enough to know that i need to use Nmake, or Nant, or something along those
lines. Trouble is, the docs for namke aren't all that pratical, at least
not for me, and Nant seems to be the same way. I also haven't had any luck
finding any good tutoria or example sites that target .NET.

Could somebody be so kind to as to point me in the right direction where I
can quickly learn how to make makefiles? If anybody would be willing to
share any simple makefiles specifically used with C# and .NET I would be
most appreciative.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!