Slee
Slee

Reputation: 28248

Project file contains ToolsVersion="4.0", which is not supported by this version of MSBuild

How do I get rid of this error, I am using Visual Studio 2008 because 2010 wouldn't open some of my VB Projects.

Upvotes: 19

Views: 41325

Answers (3)

Steve Gilham
Steve Gilham

Reputation: 11277

A VS2008 project file starts out with

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>

where the ToolsVersion indicates the .NET Framework tools version. VS2010 uses .NET 4, so clearly has made the corresponding change in its tools version.

I would expect that opening your project files in Notepad and resetting the tools version to 3.5 will clear that issue. Whether there are other backwards incompatibilities lurking, I couldn't say.

Upvotes: 24

Christian
Christian

Reputation: 11

change the target framework to 3.5

in project settings --> compile -->more options--> target framework

Upvotes: 1

hanfei
hanfei

Reputation: 9

Install Visual studio 2008 SP1,It will be ok!

Upvotes: 0

Related Questions