I've a same project that need to be compiled with .NET and Compact .NET Framework.
Some feature aren't present in CF.NET Framework so I created it by myself (creating classes having exactly the same name & options that in .NET Framework. If I decore this classes with an attribute like [CF35] it's possible to parse the project and :
?
Thanks for all constructive answers.
[EDIT]
I know the solution that consists to create two projects referencing the same files. Problem is, you should every time compile both manually. Moreover, when you add a file to one, you need to open the second and reference it too, that it's just borring to do and according that we are many people to work on the same project, I would like to do this part automatically.
Seems to be possible?
[EDIT 2] All works fine except ... resources files !
So, to resume, I've three project :
As said, all works fine, but now my problem is using Resources files.
What's the method to apply to use it?
Any idea?
You'll need to create different build configurations for each and define a custom flag like USE_CF
. Then wrap your custom classes with #if USE_CF
and #endif
so they get ignored when compiling without that flag
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With