NAVmoble - the pocket-sized ERP
Optimized for Microsoft Dynamics NAV and Windows Mobile powered devices

Thursday, December 01, 2005

Smart Device Project Conversion Failure(Part 2)

NOTE: This is my personal opinion and I do not give any guarantee. It is your responsibility if you try this

I was finally able to make my VS2005 building projects against Compact Framework 1.0
See my previous post VS2003-To-VS2005 Solution conversion failure

Actially the solution for me came after the precious help from Sriram

So in short the problem is manifested as follows:
1. I can't convert VS2003 Smart Device Project
2. I can't create new projects from VS2005 for Compact Framework 1.0

Note that I have installed VS2003 on the same machine and do not have problem targeting Compact Framework 1.0.
I reinstalled Compact Framework 1.0 SP3, however the problem was still there.
The partial solution in my previous post works only if you target Compact Framework 2.0

So here comes the solution:
I opened my registry (HKLM/Microsoft/Software/.NETCompactFramework) and noticed that I do not have key named v1.0.5000.0 This was actually noted by Sriram
I exported this key from another machine where the conversion to VS2005 was not broken and imported it into my registry. However I've corrected the path strings to point my VS2005 installation

Then tried to convert VS2003 SDF project to VS2005 and successed!

The came the second problem. I've opened the converted project however the form designer looked terrible and I was not able to compile it.
The solution:
I've checked under C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0 and noticed there is only a folder named v.2.0
I've found that I have folder D:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\1.0 - note it is on disk D:
I copied its content into C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v1.0

And ops my VS2005 is back to life - I am able to compile CF1.0 projects

Unfortunately I can't actually tell the exact steps which caused this problem. The only thing I know for sure is that it is somehow related to the VS2005 Beta2 and my trial to clear it before installing the final one.
It also may related to my few trials to re-install VS2005.
There is also another problem now - Toolbox does contain any controls and I am looking forward to solve this too.
The easiest way maybe is to start with clear Windows, however I do not have time to do it.

No comments: