is there a way tocompile without VS.NET?

G

gh

I looked at an article but didn't have any luck. Is there an easy way to
compile a C# file for the Pocket PC without VS.NET? Thanks
 
S

Shaun Wilde

Hi

yup - use the command line csc.exe which comes as part of the .NET framework
(installed
in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 etc)

I am not sure where you will get the specific .NET libraries that you will
need to link with though
(ie Microsoft.WindowsCE.Forms.dll) - I am not sure if MS deliver this as a
seperate install

Shaun
 
W

www.MSmobiles.com

gh said:
I looked at an article but didn't have any luck. Is there an easy way to
compile a C# file for the Pocket PC without VS.NET?
Thanks

yes, it is .

it is described in detail here:

http://dotnetdn.com/without-visual-studio/

(article moved from http://msmobiles.com where it was
published as the first in the world solution to develop
soft for .NET CF without Visual Studio)




--
http://msmobiles.com - latest news about Microsoft cell
phones, articles and catalog.

http://dotnetdn.com - full list of .NET CF applications,
libraries and controls.
 
G

gh

Thanks, but this is the article that I am talking about. I have tried it 50
times, and it only will run on the desktop and not the pocket pc. I have a
folder with the source Dice.cs and the 11 dll's in it that were mentioned in
this article. could someone tell me EXACTLY what to do after this? command
line code?
 
I

Iain Simpson

gh said:
Thanks, but this is the article that I am talking about. I have tried it 50
times, and it only will run on the desktop and not the pocket pc. I have a
folder with the source Dice.cs and the 11 dll's in it that were mentioned in
this article. could someone tell me EXACTLY what to do after this? command
line code?

csc /out:dice.exe /t:winexe /nostdlib+ /r:mscorlib.dll /r:... /r:... Dice.cs

You will need a /r: statement for each of the CF dlls.
Make sure that you are running csc in the same directory as your dlls. If
you don't do this, it will link to the desktop libraries and not the compact
framework ones - it does this even if you specify the library directory with
/libs:.
 

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