apb2
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
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
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]
devenv [Solution Name] /build [Build Config: Debug/Release]
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
ASKER
I'm using the
csc /reference:filename.cs /out:program.exe file.cs
etc..
csc /reference:filename.cs /out:program.exe file.cs
etc..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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