Question

So I have a solution with two projects inside. One project was running CF 3.5 while another was running CF 2.0. I tried many different ways to update the 2.0 through the program without success including removing the 3.5 project from the solution. I finally ended up manually opening the project file in notepad++ and changing the framework from 2.0 to 3.5 and saved it. Since Then I have been having issues with System references and went from 0 errors to 360 errors such as the following picture shows. Any idea how to resolve these problems?

enter image description here

enter image description here

after cleaning and building again this is what happens. Errors jump to 360 mark.. enter image description here

Was it helpful?

Solution 2

So apparently the Compact Framework does not support these properties that are having the issue. So I had to remove them from my project and it works fine. Just the crazy awesome abilities of windows compact framework.

OTHER TIPS

The safest way to change the framework version is, 1. Right click on the project 2. Click Properties 3. Change the "Target Framework" option and Save.

If you change the version from 2.0 to an upper version there will be no problem. Visual Studio will update the versions of current referenced System assemblies.

However you may be confused with the case that: System.Windows.Forms assembly does not have the version 3.5. So if you set the project's Target Framework to 3.5, System.Windows.Forms will be set to version 2.0 automatically because the latest version of this assembly for the Target Framework 3.5 is the version 2.0.

For your current situation, remove the referenced system assemblies that you modified from notepad++ and add them again by right clicking the "References" and "Add Reference" option.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top