When you open a project created in Visual Studio 2008 SP1 (vs2005 SP1 +. Net micro framework 2.5), the following error occurs:
Visual Studio does not provide automatic project upgrade for. Net MF after I install the micro framework 3.0 SDK.
After a simple attempt, you only need to slightly modify the project file and project file.
First, open the project file (. csproj) in Notepad ):
1. Change toolsversion of the project to 3.5 (if you have used automatic vs upgrade, this item should have been changed)
2.TargetframeworkversionChange to V3.0
As follows:
<ProjectDefaulttargets= "Build"Xmlns= "Http://schemas.microsoft.com/developer/msbuild/2003"Toolsversion="
3.5">
...
<Targetframeworkversion>
V3.0</Targetframeworkversion>
Then open the solution file (. sln) in notepad and put the first two lines:
Microsoft Visual Studio solution file, format version 9.00
# Visual maxcompute 2005
Changed:
Microsoft Visual Studio solution file, format version 10.00
# Visual maxcompute 2008
(Note: If you tried to automatically upgrade the project to vs2008 as prompted by Vs, the above two lines have been automatically changed. In this case, you only need to change the files in. csproj.Targetframeworkversion)
Open the solution again, OK ~
It is indeed a simple modification, but it is troublesome to upgrade a large number of projects. Here we recommend a small tool:
You can use it to batch upgrade. Net micro frameworkProgram:
Http://informatix.miloush.net/microframework/Downloads/Utilities/MicroSolutionUpgrade.zip
Enjoy!
Yellow winter