Visual c++ Visual Studio C++ 2010错误 我有个问题,我安装了VisualStudioC++ 2010 Express,每当我做一个新项目,然后运行调试来测试它,它给了我以下错误: Error 2 error C1107: could not find assembly 'mscorlib.dll': please specify the assembly search path using /AI or by setting the LIBPATH environment variable c:\Users\Cretu\documents\visual studio 2010\Projects\test2\test2\stdafx.cpp 1 把这个放在一边,当我关闭Visual C++并打开它,然后尝试打开我的项目时,它给了我这个错误: The Visual C++ project "test2" is targeting ".NETFramework, Version=v4.0", which is not installed on this machine. You must download this framework in order to open...

Visual c++ Visual Studio C++ 2010错误 我有个问题,我安装了VisualStudioC++ 2010 Express,每当我做一个新项目,然后运行调试来测试它,它给了我以下错误: Error 2 error C1107: could not find assembly 'mscorlib.dll': please specify the assembly search path using /AI or by setting the LIBPATH environment variable c:\Users\Cretu\documents\visual studio 2010\Projects\test2\test2\stdafx.cpp 1 把这个放在一边,当我关闭Visual C++并打开它,然后尝试打开我的项目时,它给了我这个错误: The Visual C++ project "test2" is targeting ".NETFramework, Version=v4.0", which is not installed on this machine. You must download this framework in order to open...,visual-c++,c++-cli,Visual C++,C++ Cli,但我已经在我的机器控制面板->已安装程序上安装了以下.NETFrameworks,这就是我得到它们名称的原因: Microsoft .NET Framework 1.1, Microsoft .NET Framework 4 Client Profile, Microsoft .NET Framework 4 Extended. 有人能解释一下为什么会这样吗?我已经重新安装了.NET Framework 4.0并重新启动了我的电脑,但仍然出现此错误。请帮忙。提前感谢您抽出时间阅读我的问题。您丢

但我已经在我的机器控制面板->已安装程序上安装了以下.NETFrameworks,这就是我得到它们名称的原因:

Microsoft .NET Framework 1.1,
Microsoft .NET Framework 4 Client Profile,
Microsoft .NET Framework 4 Extended.

有人能解释一下为什么会这样吗?我已经重新安装了.NET Framework 4.0并重新启动了我的电脑,但仍然出现此错误。请帮忙。提前感谢您抽出时间阅读我的问题。

您丢失了很多软件包。我猜您试图手动安装.NET-这根本不起作用,您需要使用,这是我的.NET 4和4.5工作列表,我猜图表控件实际上是不必要的:


请注意,您似乎创建了一个基于C++/CLI.Net的项目。这与C++是不一样的。此外,标准的C++项目不会产生错误。您是否已经尝试过查看[这](1)[ 1 ]:好,当我点击新项目时,我只有一个Visual C++窗口,有3个子组:CLR、Win32和通用。然后我从CLR Windows窗体应用程序中进行选择,但它给了我这个错误。毫无疑问,谷歌搜索将提供循序渐进的指导。您需要的是Win32项目,而不是CLR=公共语言运行时=.NetI在4.0和1.1旁边安装的.NET Framework,当我重新启动计算机时,.NET Framework 4.0突然从列表中消失,4.5出现。所以我只剩下4.5和1.1,发生了什么事?显然,4.0得到了更新和修复。如果它仍然不工作,你将不得不卸载,重新启动和重新安装。您第一次尝试手动安装时出现了严重错误。现在我再也看不到这些错误了,但在尝试运行程序时,我确实遇到另一个错误:错误1错误LNK1123:转换为COFF期间失败:文件无效或损坏c:\Users\Cretu\documents\visual studio 2010\Projects\Hello World\Hello World\LINK创建新解决方案。