Link to home
Start Free TrialLog in
Avatar of apb2
apb2Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Compile from batch

Hi

I'm pretty new to win apps. But basically i want to create a batch file that will compile my program. I have just added the compile line that i would use in dos mode to compile my program, but when i run the .bat file it does nothing. What is it i have to do? cheers
Avatar of smitty22
smitty22

What's the command you're using to compile?
Are you using Visual Studio? If so, you can run Visual Studio from the command line to compile your app...

devenv [Solution Name] /build [Build Config: Debug/Release]
Avatar of apb2

ASKER

No just  notepad. But i want to compile it on another machine that i don't have access to. So the person who is compiling it just has to double click on the batch file. Think i will try writing an exe that compiles the program
Avatar of apb2

ASKER

I'm using the

csc /reference:filename.cs /out:program.exe file.cs

etc..
ASKER CERTIFIED SOLUTION
Avatar of smitty22
smitty22

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of apb2

ASKER

hey smithy thanks or the reply. I found that notepad, which i wrote the batch file in put in all these spaces.

so i edited the file using the edit command from the dos prompt and it worked fine.

cheer any way mate.

i feel like giving away some points anyway.

cheers