Upgrade your. Net micro framework project

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.