简体   繁体   中英

Visual Studio 2010 Problem with .NET 4.0

Today I opened an C++ Project, but I just receive the "Project Target Framework Not Installed" (Targeted framework: .NETFramework,Version=v4.0)

At first my Project does not use any .NET Framework / CLR. (Win32 Console Application) At second I have 4.0 installed. At third in the Project XML File I does not found an TargetFramework Setting.

I reinstalled VS2010, I tried to (re)install .NET 4.0, Nothing -.-

Why VS2010 ask for .NET 4.0 in a Win32 Project ?

So I tried to open a older Project, but just the same.

I got my own Solution for my problem here is it, if someone have the same.

I just added:

<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>

at

<PropertyGroup Label="Globals">

I don´t know why it don´t find 4.0 but 3.5. But no matter. Win32 without CLR dont need any .NET.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM