command-line builds of Compact Framework assemblies

B

Bret Holmdahl

I am trying to build a compact framework assembly from the
command line using csc.exe. When looking at the
assembly's manifest, it appears that the referenced .NET
libraries (e.g. System.Windows.Forms.dll) are to the
complete .NET FW (v1.1) and not the Compact Framework.
When the same assembly is built from VS .NET (as a Smart
Device Application) the Compact Framework version of the
libraries are seen in the assembly manifest.

I've tried to explicity reference (via /r) the CF
libraries from the command-line but get duplicate versions
of the object definition and the version in the
complete .NET FW would be used warning.

Is there a command-ine switch for csc to target the
Compact Framework? Maybe something similar to the /netcf
option for the VB compiler. Or is there another compiler
to do this?

Any help would be appreciated.

Thx.

-Bret
 

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