Saturday, February 27, 2010

How to boostup the netcf development

Last month i worked on relatively large netcf application.
The problem begins when the executable of program start to be larger then 2 megabait (mostly because of graphics).
The application start to take more than minute of startup time.
So i can't change the program on the fly, as in my usual dotnet development.

Solution: i created new empty project. the project was with same dotnet version, but worked on full dotnet (non netcf).
And add all sources of original project.
Then on "project property"->build-> "conditional compilation symbol" i add DESKTOP.
In every place where the dotnet doesnt work like netcf if added compilation time "#if ,#else, #endif".
(Other possibilty is to use Environment.OSVersion.Platform (that contains PlatformID.WinCE))

There it is, I receive project where i can work as usual, and only when i am done with all small tasks, i am starting with the real netcf work.

No comments:

Post a Comment