• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

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
0
apb2
Asked:
apb2
  • 3
  • 2
1 Solution
 
smitty22Commented:
What's the command you're using to compile?
0
 
jlachCommented:
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]
0
 
apb2Author Commented:
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
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
apb2Author Commented:
I'm using the

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

etc..
0
 
smitty22Commented:
Try using the full path of csc:
c:\Program Files\........\csc
0
 
apb2Author Commented:
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
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now