Click here to Skip to main content
15,895,283 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# vs. C++ Pin
Rocky Moore22-Jun-03 23:47
Rocky Moore22-Jun-03 23:47 
GeneralRe: C# vs. C++ Pin
TigerNinja_23-Jun-03 10:14
TigerNinja_23-Jun-03 10:14 
GeneralRe: C# vs. C++ Pin
Rocky Moore23-Jun-03 22:48
Rocky Moore23-Jun-03 22:48 
Generalinserting into database. Pin
Asim N.22-Jun-03 18:17
Asim N.22-Jun-03 18:17 
GeneralConfiguration file Pin
puppiesLover22-Jun-03 13:24
puppiesLover22-Jun-03 13:24 
GeneralProgram Flow Pin
puppiesLover22-Jun-03 11:09
puppiesLover22-Jun-03 11:09 
GeneralRe: Program Flow Pin
Jon Newman23-Jun-03 4:42
Jon Newman23-Jun-03 4:42 
Generalcreating a single EXE from multiple projects Pin
mikechambers22-Jun-03 6:20
mikechambers22-Jun-03 6:20 
Ok. After about 12 hours of trying to combine multiple assemblies into a single EXE, I am finally making some progress.

I ended up compiling each class into its own module (quite a pain). I am now trying to use al.exe to combine all of them. If I use the following command line:

al.exe ActionNotSpecifiedException.netmodule Arguments.netmodule ConsoleLogger.netmodule DirectoryUtils.netmodule FileLogger.netmodule FileUtils.netmodule ProgCommand.netmodule ProgInfo.netmodule ProgNotFoundException.netmodule InvalidCommandLineException.netmodule Logger.netmodule LoggerArrayList.netmodule LoggerManager.netmodule StreamWriterLogger.netmodule StringArrayList.netmodule TextWriterLogger.netmodule TimeOutException.netmodule ProgCommandRunner.netmodule /main:mesh.Prog.ProgCommandRunner.Main /out:ProgCommand.exe /target:exe

I can actually create the ProgCommand.exe executable. Except that it has to be in the same directory as the modules in order to run. So close, yet so far.

I also tried to combine everything in my make file with the following code:

$(DEST)\$(ASSEMBLY): $(METADATA) $(MODULES) $(DEST)
$(CSC) $(EXETARGET) /addmodule:$(MODULES: =;) /main:mesh.Prog.ProgCommandRunner.Main /out:$@ %s

which on the command line translates to:

csc /nologo /debug+ /d:DEBUG /d:TRACE /t:exe /addmodule:.\Arguments.netmodule;.\InvalidCommandLineException.netmodule;.\DirectoryUtils.netmodule;.\FileU
tils.netmodule;.\TimeOutException.netmodule;.\StringArrayList.netmodule;.\Logger.netmodule;.\LoggerArrayList.netmodule;.\TextWriterLogger.netmodule;.\ConsoleLog
ger.netmodule;.\StreamWriterLogger.netmodule;.\FileLogger.netmodule;.\LoggerManager.netmodule;.\ActionNotSpecifiedException.netmodule;.\ProgCommand.netmodule;.
\ProgNotFoundException.netmodule;.\ProgInfo.netmodule;.\ProgCommandRunner.netmodule /main:mesh.Prog.ProgCommandRunner.Main /out:.\ProgComma
nd.exe ..\build\AssemblyInfo.cs

However, this gives me the following error:

error CS1555: Could not find 'mesh.Prog.ProgCommandRunner.Main' specified for Main method
NMAKE : fatal error U1077: 'csc' : return code '0x1'

Does anyone have any idea what I am doing wrong? I have been trying to get this to work for quite some time. All I want to do is combine multilple projects into one executable.

Thanks in advance... (I hope)...

mike c

GeneralRe: creating a single EXE from multiple projects Pin
leppie22-Jun-03 11:16
leppie22-Jun-03 11:16 
GeneralRe: creating a single EXE from multiple projects Pin
mikechambers22-Jun-03 11:39
mikechambers22-Jun-03 11:39 
GeneralRe: creating a single EXE from multiple projects Pin
leppie22-Jun-03 11:59
leppie22-Jun-03 11:59 
GeneralRe: creating a single EXE from multiple projects Pin
Rocky Moore22-Jun-03 23:56
Rocky Moore22-Jun-03 23:56 
GeneralRe: creating a single EXE from multiple projects Pin
mikechambers23-Jun-03 6:25
mikechambers23-Jun-03 6:25 
GeneralRe: creating a single EXE from multiple projects Pin
Rocky Moore23-Jun-03 8:50
Rocky Moore23-Jun-03 8:50 
GeneralRe: creating a single EXE from multiple projects Pin
mikechambers23-Jun-03 15:33
mikechambers23-Jun-03 15:33 
GeneralPretty sticky problem to me... Pin
Weiye Chen22-Jun-03 2:32
Weiye Chen22-Jun-03 2:32 
Generalsomeone clear my mind please Pin
wingcom22-Jun-03 0:29
wingcom22-Jun-03 0:29 
GeneralRe: someone clear my mind please Pin
leppie22-Jun-03 11:23
leppie22-Jun-03 11:23 
GeneralDataGrid Navigation "+" Pin
vladmihai22-Jun-03 0:02
vladmihai22-Jun-03 0:02 
GeneralOutlook interop Pin
WillemM21-Jun-03 23:56
WillemM21-Jun-03 23:56 
QuestionSetting environment variables from installer? Pin
mikechambers21-Jun-03 12:01
mikechambers21-Jun-03 12:01 
AnswerRe: Setting environment variables from installer? Pin
Burt Harris21-Jun-03 12:36
Burt Harris21-Jun-03 12:36 
GeneralRe: Setting environment variables from installer? Pin
mikechambers21-Jun-03 14:55
mikechambers21-Jun-03 14:55 
GeneralRe: Setting environment variables from installer? Pin
J. Dunlap21-Jun-03 16:45
J. Dunlap21-Jun-03 16:45 
GeneralRe: Setting environment variables from installer? Pin
mikechambers21-Jun-03 18:10
mikechambers21-Jun-03 18:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.