.NET

Reply
Valued Contributor
Matt S
Posts: 64
Registered: ‎05-05-2004
Message 1 of 3 (71 Views)

What's the best way to command line build?

71 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
RonnieWilkins
Posts: 453
Registered: ‎04-07-2003
Message 2 of 3 (71 Views)

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
Message 3 of 3 (71 Views)

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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community