predefined constant for conditional compilation based on NETCF or Full framework?

S

Sagaert Johan

Hi

Is there a constant i could use to force conditional compilation based on
whether i compile for CF or the Full NET framework ?

Johan
 
N

Nicholas Paldino [.NET/C# MVP]

Johan,

I imagine you would have to do this yourself. Basically, you can define
constants on the "Build" page of the "Properties" page for the project.
Under the "General" section, you can enter any conditional compilation
symbols you wish.

You can also place these symbols in your code, using the #define
directive.

You can also use the #if, #else, #elif, #endif directives to declare
sections of code that the compiler will use only if certain constants are
defined.
 

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