65.9K
CodeProject is changing. Read more.
Home

CSC.EXE CMDLGen

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.60/5 (5 votes)

Nov 24, 2003

viewsIcon

61763

downloadIcon

1441

Simple utility for generating csc.exe command line options

Sample Image - csccmdlgen.jpg

Introduction

CMDLGen is an utility for creating .bat for compiling C# projects in arbitrary .NET version. I have VS.NET 2002 and I'm not willing to buy 2003, because I can select .NET version when compiling (I see no other reason why I should buy it...). So I decided to write this small utility.

Well, it's not very user friendly. However if you have an 80-source-files project structured into folders, it's much more pleasant than writing them all down by hand. You must also specify full paths to all the resources. But you only have to do that once since you can save your CMDLGen "project".

All that the utility does is that it creates a .bat file for csc.exe. Each time you add/remove any files from your project, you must re-create this .bat file. The utility is not fool-proof. You must be careful using it. I have tried to compile just one of my projects using this utility and it worked. Anyway, if you find a bug, please e-mail me so I can fix it.