Build .NET CF Apps using Command Prompt

G

Guest

Hello,

I using Ant to automate build cycles, I would like to know what parameters I need to send to csc to identify the application as a .Net CF app.

TIA,
Karthik
 
N

Neil Cowburn [MVP]

The two main important switches are /noconfig and /nostdlib.

/noconfig will mean the compiler does not use the options defined in its
csc.rsp file.
/nostdlib means you MUST reference Mscorlib.dll explicitly

For everything else, you must reference any other .NET CF assemblies
your application uses using the full path to the assemblies. Please go
read the blog post I made on this very subject.

http://blog.opennetcf.org/ncowburn/PermaLink,guid,be5e4e2d-4fbd-41aa-ad95-6da90bf3fd5a.aspx

HTH
Neil
 
C

Christian Schwarz

Hello,

you may also consider to use NAnt's "-defaultframework:<framework>" command
line switch. The NAnt version I'm using has build-in support for .NET
v1.0/v1.1/v1.2, .NET CF v1.0 and Mono v1.0. You can easily modify the
settings, add new frameworks or change the default framework by modifing the
"NAnt.exe.config" XML file (located in the \bin directory).

Greetings, Christian
 

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