错误:框架“.NETFramework 4.0客户端配置文件”未安装。对于MonoDevelop的2.8.1配置文件、客户端、框架、错误

2023-09-04 02:33:44 作者:视屎如归

我收到以下错误:

Error: Framework '.NETFramework 4.0 Client Profile' not installed.

当我尝试建立我的项目。

When I try to build my project.

我该如何解决这个问题?

How do I fix this?

推荐答案

的MSBuild项目可以参考任意框架型材(子集),如果配置文件安装在运行时的框架定义,这将只。单不具备所有的框架配置文件NET有,如在.NET 4.0客户端配置文件。

MSBuild projects can reference arbitrary framework profiles (subsets), which will only work if the profile is installed in the runtime's frameworks definitions. Mono doesn't have all of the framework profiles that .NET has, e.g. the .NET 4.0 Client Profile.

要解决此问题,更改该项目​​使用完整的4.0框架。

To work around this, change the project to use the full 4.0 framework.

在MonoDevelop中,这里是你如何更改设置:

In MonoDevelop, here's how you change the setting:

右键点击项目名称 选项>生成>常规>目标框架 选择安装在您的计算机上的框架。