how can I use csc.exe to compile VS.NET project?

G

Guest

I was testing my blackjack game away from home and found a few bugs, so I
wanted to correct them, but on this computer I dont have VS.NET, only the
csc.exe that comes with the .NET Framework. I have all the files that are
made by VS.NET and, after editing the source code file, was wondering if I
could compile the project with csc just like VS.NET does.
 
G

Guest

copy all the *.resources files and all the *.cs files to one directory, then
the commando will go something like this:
csc (/t:winexe) sourcecode1.cs sourcecode2.cs (...)
/res:resourcefile1.resources /res:file2.resources ...
of course, you can also specify an output file,, if you dont, the exe will
take the name of the firs *.cs file.

funny how the exe turned out 25% smaller than the exe and pbd created by
VS.NET.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top